In the middle of the desert you can say anything you want

26 May 2023

Black for jupyter notebook

jupyter-black · PyPI

pip install jupyter-black

To load:

%load_ext jupyter_black

It will automatically format all correct python code in the cells!

NB works much, much better with jupyterlab, in the notebook version it first executes the cell, then does black and hides cell output. It does warn about that everywhere though.

Nel mezzo del deserto posso dire tutto quello che voglio.