Skip to content

Posts ​

Romain CasatiMay 1, 2026· in Python, Console, Notebook· 2 min read

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: print and input show up as the run goes.

Play with it!

Real-time display

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.


Romain CasatiDecember 2, 2025· in Notebook· 1 min read

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!

Full screen button


Romain CasatiOctober 12, 2025· in Python· 1 min read

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.

Play with it!

Python 3.12


Romain CasatiJanuary 31, 2025· in Notebook· 1 min read

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:

html
<embed
  src="https://basthon.fr/pdf/Basthon_Documentation.pdf"
  width="100%"
  height="500"
/>

For security reasons, only PDF files are accepted.

Play with it!

PDF in a Markdown cell


Romain CasatiJanuary 10, 2025

· 1 min read

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.

The new site