How To Install nbextension for Jupyter Notebooks

tayler.sale
tayler.sale Member, Moderator, Domino Posts: 27 mod

In order to install an extension for Jupyter or JupyterLab Notebooks and ensure it persists across all your workspaces sessions you will need to install it in your compute environment first. Some common extensions used are part of the nbextension package. Below you will find the commands needed to install the nbextension package (and all the extensions it includes) and enable the codefolding extension. You can use this code as a base to install/enable any other nbextension by simply editing the last line of code with the appropriate extension you want to enable.

Add the following to the dockerfile of your compute environment:

RUN pip install jupyter_contrib_nbextensions
RUN jupyter contrib nbextension install --system
RUN jupyter nbextension enable codefolding/main

Let us know if this helps or if you have any questions! And if you use this code and you run into issues trying to get your extension installed, please email [email protected] and we would be happy to help!

Tagged:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!