Skip to content

Posts ​

Romain CasatiOctober 29, 2026· in Python, Console, Notebook· 1 min read

Pillow images in tkinter ​

Basthon's tkinter windows now show Pillow images, as on a computer: ImageTk.PhotoImage turns a Pillow image (or a file) into a tkinter image, to put in a Label, a Button or a Canvas. Its paste method replaces the image shown: ideal to see the effect of an image processing click after click.

Continue reading


Romain CasatiOctober 28, 2026· in SQL, JavaScript, R, Console, Notebook· 2 min read

Completion in SQL, JavaScript and R ​

Until now, only Basthon's Python completed names with the Tab key. SQL, JavaScript and R now do too, in the console, the notebook and the basthon command. No more typos in the names of columns!

Continue reading


Romain CasatiOctober 27, 2026· in Notebook· 1 min read

The notebook opens in the language of the browser ​

Since it speaks ten languages, Basthon's notebook was shown in French until another language was chosen. It now opens directly in the browser's preferred language, if it is one of the ten available: a browser set to Spanish shows the notebook in Spanish, without doing anything.

The choice made in the View menu, Language submenu, still takes precedence and is remembered for the next visits, as is the lang parameter of a link (for instance ?lang=en). For a language that is not available, the interface stays in French.

Changing the language now keeps the parameters of the link, such as the kernel or the extensions: only those that load content (notebook, extra files, modules) are removed, since the current notebook is restored from its backup.


Romain CasatiOctober 23, 2026

· 2 min read

A documentation entirely revised ​

After going online, Basthon's documentation was reread from top to bottom, checked against the code and completed. It is now single: the pages that lived apart (isolated kernels, self-assessment, basthon module) joined the site, with the same search and the same navigation.

Among the novelties:

  • a link generator to share an activity: choose the interface, the language, the content, the extra files and the modules, and it builds the address. It also converts the address of a file on GitHub or on the Forge into an address Basthon can download;
  • a page per language (SQL, OCaml, JavaScript, XCAS, C and R), with its files, its modules and its downloads;
  • for Python, a summary of the differences with Python on a computer, the modules adapted to Basthon (Turtle, Matplotlib, tkinter, p5.js…) on their own page and the main available modules, sorted by theme;
  • a Troubleshooting page: nothing is shown, the program does not stop, a shared file does not load, a module cannot be found…
  • the Self-assessment, Extra files and modules and On the command line pages;
  • diagrams to understand at a glance where files go, what a shared link does, what an isolated kernel protects or how a sequenced notebook unfolds.

The pages read just as well on a phone: large tables scroll without overflowing the screen.

For developers and the platforms that integrate Basthon, an integration guide for the kernel, the reference of its JavaScript API, generated from the code, a description of its architecture and security and a guide to add a new language.

This review also fixed a few bugs: the console that stayed stuck on its loading screen when a shared file was refused, basthon.download that ignored text in JavaScript, Turtle's fillcolor() that returned the pen's colour, IPython.display.Code that did not work, or Graphviz's PNG export (render(format="png")) that failed in isolated kernels.

The old addresses lead automatically to the new pages. A mistake, something missing? Don't hesitate to tell us!

Read the documentation


Romain CasatiOctober 23, 2026· in New modules, Python· 1 min read

ics ​

The ics module arrives in Basthon's Python kernel: it writes and reads calendars in the iCalendar format, the .ics files that every calendar understands (the phone's, the school's digital workspace, Thunderbird, Google Calendar…). A way to generate the schedule of a project or of a course, then import it into your calendar in a single click.

Continue reading