Posts
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.
The notebook in full screen
A new button in the toolbar of Basthon's notebook puts it in full screen (and back). Ideal to project in class or to work on a small screen!

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.

PDFs in Markdown
A subject, a worksheet or an exercise in PDF format can now be shown directly in a Markdown cell of Basthon's notebook, with the <embed> tag:
<embed
src="https://basthon.fr/pdf/Basthon_Documentation.pdf"
width="100%"
height="500"
/>For security reasons, only PDF files are accepted.

A new site for Basthon
The basthon.fr site gets a makeover! It is now built with Material for MkDocs: clearer navigation, built-in search, a dark mode, a display suited to phones… and this blog, which gathers all of Basthon's news.
