Jupyter Notebook “Nbextensions”

Alessandra Barbosa
3 min readMay 10, 2022

--

Photo by Cristian Guanipa on Unsplash

It’s very common some students ask me about the extensions for Jupyter notebook that I use. In this article I would like to show the extensions that I most like and why.

But what is?

Nbextensions are add-ons that extend the basic functionality of the notebook environment and help us work faster and more organized. They are plugins written in JavaScript that do things like automatically format the code, correct or send a notification to the browser and many others. In my opinion they are great tools to improve our productivity.

How I install Nbextensions?

Nbextensions com pip :

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


Nbextensions com terminal do Anaconda :

conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator
jupyter contrib nbextension install --user

Enabling Nbextensions

The installation will add a tab to your Jupyter Notebook where you can check and check which extensions you want to enable.

First enable by unflagging then enable the desired extensions and enjoy the productivity benefits!

Disable extensions

My Top 5 extensions:

1. Hide Input

Shows or hides the code of the selected cell

Hide Input

2. Hinterland

Activate the code autocomplete menu

Hinterland

3. Table of contents(2)

Lets you collect all running headers and display them in a floating window, like a sidebar or with a navigation menu.

Table contents

4. ExecuteTime

Displays when each cell ran and how long it took

Execute Time

5. Split Cells Notebook

Enable split cells in Jupyter notebooks

Split Cells

To finish…

I show all the ones I normally enable:

Do you suggest others?

Leave your comments.

--

--