Jupyter Notebook: Tips and Tricks with Examples

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

Add a local virtualenv as kernel

Replace your-venv with your virtualenv name

  • activate the virtualenv

    $ source your-venv/bin/activate
  • install jupyter in the virtualenv

    (your-venv)$ pip install jupyter
  • Add the current virtualenv as a jupyter kernel

    (your-venv)$ ipython kernel install --name "local-venv" --user
  • You can now select the created kernel when you start Jupyter

Add commands to the beginning of every notebook


List current variables and sizes


Dialogue & Discussion