Skip to content

December 2023 ​

Romain CasatiSeptember 23, 2023· in New modules, Python· 1 min read

pyflakes and pycodestyle ​

Two new modules in Basthon's Python kernel to analyse code without running it:

  • pyflakes detects likely errors: unused import, undefined variable…;
  • pycodestyle checks that the style conventions of PEP 8 are respected.

pyflakes and pycodestyle


Romain CasatiJune 16, 2023· in Python, Notebook· 1 min read

The filesystem:/ scheme ​

The files created by Python in Basthon can now be reached with the filesystem:/ prefix. An image generated with PIL, for instance, can be loaded with loadImage in p5 or shown directly in a Markdown cell:

markdown
![my image](filesystem:/my_image.png)

Play with it!

Image of the filesystem shown in Markdown


Romain CasatiJune 16, 2023· in Python· 1 min read

Python 3.11 ​

Thanks to the update of Pyodide to version 0.23, Basthon's Python kernel moves to Python 3.11. On the menu: a much faster interpreter and more precise error messages, which point exactly at the faulty expression. A real plus for students!

Python 3.11


Romain CasatiJanuary 30, 2023· in New modules, Python· 1 min read

Plotly ​

The Plotly module appears in Basthon's Python kernel: plenty of fun making nice interactive charts!

Play with it!

plotly


Romain CasatiJanuary 30, 2023· in SQL· 1 min read

Empty SELECT in SQL ​

News in Basthon's SQL kernel: an empty SELECT shows the names of the columns!

Play with it!

SQL column