Posts
Loading a data file
Until now, it was not easy in Basthon to have students work on extra files (text, CSV, image, etc.). Now, you can load them directly into Basthon, then open them from Python! That will make people happy!




Of course, the file does not travel over the network, it stays on the client side. You are starting to know Basthon's philosophy!
So the open button now has two functions:
if the selected file has a .py (for the console) or .ipynb (for the notebook) extension, this file is shown in the environment
otherwise, the file is put on the browser's local filesystem and is available from Python
A working input
I don't know whether some find a teaching interest in using input, but it now works in the console and the notebook.
Pyodide's native version is buggy. https://github.com/iodide-project/pyodide/issues/757https://github.com/iodide-project/pyodide/issues/758
Sympy for computer algebra
To fellow high school maths teachers: you can also use Basthon to cover "using a computer algebra system", thanks to the Sympy module.


Even in the console version, formulas are nicely shown with the pretty_print function. If you would rather not introduce it to students, print works too.

Computer algebra appears in the French maths curricula from the first year of high school to the final year.
I leave it to you to explain why this notation with brackets is not an interval!
Thanks to Pyodide and Jupyter
Thanks to @RomanYurchak (Pyodide maintainer) to talk about @BasthonPython to @ProjectJupyter and Pyodide communities. Both are great projects, at the heart of @BasthonPython. Ready to collaborate to throw it in the big league ! https://x.com/RomanYurchak/status/1317850169468194819
New basthon.fr domain
Christmas comes early for Basthon, which treats itself to a new domain name! Impossible to forget now! https://basthon.frhttps://console.basthon.frhttps://notebook.basthon.fr

You had just learnt the old addresses by heart? Don't panic, they are still in service!