November 2026
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.

A teacher's password to unlock the rest of the notebook
Basthon's input function can now hide what is typed:
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.

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.

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.

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().
