The Basthon project
Basthon stands for "Bac À Sable pour pyTHON" — a sandbox for Python. It sounds like the French word "baston", a brawl: a nod to the fight that learning to program, writing code or debugging it can sometimes be.
It is a teaching kernel that runs Python, SQL, OCaml, JavaScript, XCAS, C and R in the browser, with nothing to install, along with the tools that help to learn and to teach. You can use it with Basthon-Console, Basthon-Notebook or inside Capytale. The documentation describes how to use it.
How does Basthon respect your privacy?
No personal data recorded, no advertising, no sign-up. Your code is run by your browser: it is never sent over the network. No statistics are collected, not even on the site's traffic, and no cookie is stored.
Only your code and the appearance of the display are kept, in your browser's local storage: you find Basthon in the state you left it in after a network failure, a page refresh or closing the browser.
Under which licence is Basthon released?
Basthon is free software, built with free software. It is released under the GNU GPL version 3 licence, or any later version. If you think that free software simply means software that costs nothing, read this.
The source code is available on the forge of the educational digital commons: the kernel, the console and the notebook. Feel free to use their bug trackers.
The documentation is released under the CC BY-NC-SA 4.0 licence.
Which third-party software and resources are used?
Each language relies on a free software project, compiled for the browser:
- Python: Pyodide, Python's reference interpreter (CPython) compiled to WebAssembly. The p5.js, Matplotlib, SymPy, Pandas, Folium, Graphviz (with viz.js), PythonTutor and other modules have been adapted for Basthon. Turtle is a modified version of Brython's, and
tkinterrelies on tkinter-web-backend; - SQL: sql.js (SQLite);
- OCaml: js_of_ocaml;
- XCAS: Giac;
- C: the xcc compiler;
- R: webR.
Basthon-Notebook is a modified version of the classic Jupyter notebook: much of its code comes from Jupyter. The console uses the Ace editor, the xterm.js terminal and the notie notifications.
The Basthon logo was made with the KeyTabMetal font published by Tension Type on dafont.com. The icons are those of Font Awesome.
The author warmly thanks the developers of all these projects, and most especially those of Pyodide.
How do I install Basthon on my own web server?
Download the archive of the console or of the notebook and extract it wherever you want on your web server: see Hosting Basthon on your own web server.
Which browsers does Basthon work with?
Basthon works with up-to-date versions of Firefox, Chrome/Chromium and Edge. If you run into a problem, report it on the forge or contact the author.
How do I contact the author?
You can contact the author at the following address: Romain.Casati_at_no_spam_basthon.fr (replace _at_no_spam_ with @).