jupyter lab: clearing notebooks
Jupyterlab is an amazing environment to play around in. There are some features that can make the experience even better. A collection of them will be demonstrated here.
To clear the notebook from the commandline, first make sure that you've installed
nbstripout in the correct virtualenv. You can do this in the terminal via;
pip install nbstripout
Once this is installed (and assuming a notebook called
you can strip the output from the file by running;
There are some features we haven't discussed here, but you can find more information on the github page of the project.
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.