Skip to content

Notebook ​

Romain CasatiOctober 29, 2026· in Python, Console, Notebook· 1 min read

Pillow images in tkinter ​

Basthon's tkinter windows now show Pillow images, as on a computer: ImageTk.PhotoImage turns a Pillow image (or a file) into a tkinter image, to put in a Label, a Button or a Canvas. Its paste method replaces the image shown: ideal to see the effect of an image processing click after click.

Continue reading


Romain CasatiOctober 28, 2026· in SQL, JavaScript, R, Console, Notebook· 2 min read

Completion in SQL, JavaScript and R ​

Until now, only Basthon's Python completed names with the Tab key. SQL, JavaScript and R now do too, in the console, the notebook and the basthon command. No more typos in the names of columns!

Continue reading


Romain CasatiOctober 27, 2026· in Notebook· 1 min read

The notebook opens in the language of the browser ​

Since it speaks ten languages, Basthon's notebook was shown in French until another language was chosen. It now opens directly in the browser's preferred language, if it is one of the ten available: a browser set to Spanish shows the notebook in Spanish, without doing anything.

The choice made in the View menu, Language submenu, still takes precedence and is remembered for the next visits, as is the lang parameter of a link (for instance ?lang=en). For a language that is not available, the interface stays in French.

Changing the language now keeps the parameters of the link, such as the kernel or the extensions: only those that load content (notebook, extra files, modules) are removed, since the current notebook is restored from its backup.


Romain CasatiOctober 23, 2026· in Notebook· 1 min read

Sequenced notebook: breakpoints that can no longer be bypassed ​

In a sequenced notebook, what comes next only appears once the breakpoint cell (tagged breakpoint) has validated the step. Until now, a clever student could rewrite this cell to unlock the rest without answering.

Not any more: in Basthon's notebook, the code cells used as breakpoints are now read-only, and only a cell left identical to the teacher's can reveal the rest. The original code is also the one saved: saving or restarting the kernel cannot replace it.

Validation functions, the teacher's password and existing sequenced notebooks work without changing anything.

Play with it!


Romain CasatiOctober 22, 2026· in Python, Console, Notebook· 2 min read

Sound with p5 ​

Basthon's p5 module can now make sound, in isolated kernels as with the legacy kernel: p5.sound is loaded with p5.js. You can play sound files (loadSound), synthesize notes (Oscillator, MonoSynth, Envelope…) and analyse what you hear (FFT, Amplitude). The classes of p5.sound are used directly after from p5 import *.

Continue reading