Silver BlogTop 5 Best Jupyter Notebook Extensions

Check out these 5 Jupyter notebook extensions to help increase your productivity.

By Eliot Andres, Freelance Machine Learning Engineer

Notebook extensions are plug-ins that you can easily add to your Jupyter notebooks. The best way to install them is to use Jupyter NbExtensions Configurator. It will add a tab to let you enable/disable extensions:

Screenshot of NbExtensions Configurator
Screenshot of NbExtensions Configurator



Installation with conda:

conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator

Or with pip:

pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user

Find more info about installation here


1 - Collapsible headings

Very useful when dealing with large notebooks, collapsible headings allow you to collapse some parts of the notebooks.

Using collapsible headings
Using collapsible headings


2 - Notify

For long running task, the notify extension sends a notification when the notebook becomes idle.
Using notifyUsing notify

To use it, enable the extension and then enable it in the button bar. The number you select is the minimum time the notebook has to run for you to get a notification (Note that you have to keep the notebook open in the browser for the notification to work)


3 - Code folding


Using code folding
Using code folding


4 - tqdm_notebook

This one is not really an notebook extension. TQDM is a progress bar library. But it sometimes fails to work properly on Jupyter Notebooks. Thanks to Randy Olson for the tip:


5 - %debug

Not a notebook extension but an IPython magic command. For a great explanation, I suggest reading the full twitter thread from Radek Osmulski


6 - Smaller extensions and other tips


  • %lsmagic: Run this in a cell to list all available IPython magics
  • Zen mode extension: removes the menus for less distractions
  • Execute time extension: shows how long a cell took to run
  • autoreload: Autoreloads external files without having to restart the notebook. To enable it:
%load_ext autoreload
%autoreload 2

You know a must-have notebook extension? Hit me on twitter or make a pull request on this blog post!


Edit on Wed, Mar 7, 2018:

Some people on Reddit suggested a few more:

  • Variable inspector: displays all variables in a floating window
  • CodeMirror Keymap: lets you choose between key bindings, such as vim
  • Scratchpad: executes code against the current kernel without modifying the notebook document
  • Splitcells: splits cells vertically

Bio: Eliot Andres (@eliotandres) is a freelance machine learning engineer with a focus on porting models from prototype to production. He has a thing for Tensorflow and computer vision

Original. Reposted with permission.