Skip to content

Posts ​

Romain CasatiOctober 22, 2020

· 1 min read

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:

  1. if the selected file has a .py (for the console) or .ipynb (for the notebook) extension, this file is shown in the environment

  2. otherwise, the file is put on the browser's local filesystem and is available from Python


Romain CasatiOctober 19, 2020

· 1 min read

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


Romain CasatiOctober 19, 2020

· 1 min read

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!


Romain CasatiOctober 19, 2020

· 1 min read

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


Romain CasatiOctober 17, 2020

· 1 min read

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!