What is the correct way to update Jupyter Notebook extensions?

Viewed 7234

What is the correct way to upgrade Jupyter Notebook extensions (e.g. RISE, ipywidgets)? I have a routine which keeps my Python packages updated by running pip install --upgrade, and this downloads and installs new Notebook extension versions too, when they are available.

Should I also run jupyter nbextension install --py --sys-prefix, and possibly even jupyter nbextension enable --py --sys-prefix for each of the Notebook extensions which pip gets a new package?

Thanks

3 Answers

jupyter nbextension install --py --sys-prefix installs the extension code in the correct place, so yes you should run this when you update an extension.

jupyter nbextension enable --py --sys-prefix just writes in a JSON file to load the relevant extension - so unless the extension changes its name then no, you don't need to rerun this.

Consider running jupyter labextension update --all in terminal to check and install updates.

Related