Python
Isolated kernels
Basthon's kernels (Python, OCaml, JavaScript, SQL and XCAS) are now isolated: the code runs in an environment separate from the web page that shows it. In practice:
- more security: the code run has no access to the data of the page (such as your login information on a site that embeds Basthon);
- a page that no longer freezes: a long computation no longer locks the interface;
- real-time display:
printandinputshow up as the run goes.

To get the former behaviour back, add the -legacy suffix to the kernel URL parameter, for instance https://console.basthon.fr/?kernel=python3-legacy. All the details are in the documentation.
Python 3.12
With the update of Pyodide to version 0.26, Basthon's Python kernel moves to Python 3.12. Among the novelties: more flexible f-strings (the same quotes can be reused inside) and even more telling error messages, which for instance suggest a forgotten import.

PythonTutor in colour
The step-by-step visualization of PythonTutor, available in Basthon through from tutor import tutor, gets two improvements:
- syntax highlighting of the code;
- a frame that fits automatically the size of the visualization, without a scroll bar.

icecream
Tired of print to debug? The icecream module is available in Basthon's Python kernel: ic(expression) shows both the expression and its value.
For it to work, Basthon now keeps the source code of the cells run: inspect.getsource also works on the functions defined in the notebook or the console.

clear_output
The clear_output function of the IPython.display module works in Basthon: it clears the output of the current cell. With wait=True, the clearing only happens at the next display, which avoids flickering. Perfect for a progress bar, a countdown or a little text animation!
