dnanhkhoa / nb_black

A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using black.
MIT License
367 stars 41 forks source link

Run our example notebook and verify the output #28

Open Iain-S opened 4 years ago

Iain-S commented 4 years ago

This is entirely optional but would be nice to put on a CI server or something...

One option for testing nb-black is to have an .ipynb notebook and to run it using Selenium. After each code cell is a raw cell which shows what the code cell should look like after formatting. It would have picked up on the trailing whitespace issue and any issues with loading/unloading/reloading.

I run all the cells with a keyboard shortcut at the moment but there might be a better way.