Posts
Faker
Need data for an exercise on tables or databases? The Faker module, now available in Basthon's Python kernel, generates names, addresses, emails… more real than life, and in French too!

geojson
The geojson module arrives in Basthon's Python kernel to handle geographic data in the GeoJSON format. It goes very well with folium to show them on a map!

A documentation for the basthon module
The basthon module, available in the Python kernel, now has its own documentation, generated automatically from the code: display and download functions, self-assessment module…

The self-assessment module
Basthon's Python kernel ships a basthon.autoeval module to test students' code automatically. For instance, ValidateFunction compares a function with a reference function on a series of values:
from basthon.autoeval import ValidateFunction
ValidateFunction("absolute_value", [-3, -1, 0, 2, 5], valid_function=abs)()The module also offers ValidateVariables to check variables, and is the basis of the sequenced notebook.

Read-only instructions
An unfortunate double click on an instruction, and the student faces Markdown code… With the romd extension (for read-only markdown, URL parameter extensions=romd), the Markdown cells of Basthon's notebook can no longer be edited, and none can be created.
