Other languages
Basthon can also run SQL, OCaml, JavaScript, XCAS, C and R; there are examples in the gallery. To do so, use the kernel URL parameter:
Without this parameter, Python is used (kernel=python3, or simply kernel=py, see Python in Basthon). These links are also in the Console and Notebook menus at the top of this page and, in the notebook, in the File › New Notebook menu.
Each language has its page, which shows what can be done with it through examples to try, and describes its files, its modules and what the Tab key completes (in the console, the notebook and the basthon command). For SQL, OCaml, JavaScript and C, a second page describes what Basthon adds to the language: functions, modules and differences with the language on a computer.
| Language | Extra files | Modules | Download a file |
|---|---|---|---|
| Python | ✅ | *.py | ✅ |
| SQL | ❌ | *.db, *.sqlite database or *.sql script | ✅ |
| OCaml | ✅ | *.ml, *.mli | ✅ |
| JavaScript | ❌ | *.js | ✅ |
| XCAS | ❌ | ❌ | ❌ |
| C | ✅ | *.c, *.h | ✅ |
| R | ✅ | *.R | ❌ |