Skip to content

November 2026 ​

Romain CasatiOctober 9, 2026· in Console· 1 min read

A new terminal for the console ​

The terminal of Basthon's console was entirely rebuilt on xterm.js, the terminal used among others by Visual Studio Code. On the menu: a more faithful display (emojis, colours, line wrapping when the window is resized), completion with Tab, commands over several lines, a history kept from one visit to the next, and hidden input for getpass.

Play with it!

The new terminal


Romain CasatiOctober 9, 2026· in Notebook, Python· 3 min read

A teacher's password to unlock the rest of the notebook ​

Basthon's input function can now hide what is typed:

python
pwd = input("Password: ", password=True)

The standard getpass module benefits from it too: getpass.getpass() now shows a real password field.

Combined with the sequenced notebook, this novelty lets the teacher validate each step of an activity, walking around the class and typing their password.

Play with it!

Validation by the teacher's password

Continue reading


Romain CasatiOctober 9, 2026· in Notebook, Console· 1 min read

Safer outputs ​

A notebook shared by a link can hold anything… Basthon therefore strengthens the security of everything shown in the notebook and the console:

  • HTML, SVG and Markdown are always sanitized with DOMPurify;
  • the JavaScript code of outputs runs in an isolated frame (sandbox), with no access to the page;
  • an output can no longer overflow its display area.

Interactive outputs keep working: they simply run in their sandbox.

Play with it!

Script run in a sandbox


Romain CasatiJune 28, 2026

· 1 min read

A documentation to try out ​

Basthon's documentation (in PDF format, in French) gets a makeover. Now written with Typst, it offers, next to each code example, a "try it" link that opens it directly in Basthon's console or notebook, ready to run.

Read the documentation

Try link in the documentation


Romain CasatiJune 10, 2026· in New modules, Python· 1 min read

drawsvg 2 ​

Version 2 of the drawsvg module is available in Basthon's Python kernel, next to the old drawSvg version. Shapes, texts, gradients, animations… drawings are shown directly and downloaded as SVG with d.download().

Play with it!

drawsvg 2