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
Use pip install notebook --upgrade or conda upgrade notebook to upgrade to the latest release. We strongly recommend that you upgrade to version 9+ of pip before upgrading notebook . Use pip install pip --upgrade to upgrade pip. Check pip version with pip --version .
Now open Jupyter Notebooks. There should be a new tab called “Nbextensions.” Click on it and you'll see a bunch of extensions you can use to increase your productivity on Jupyter Notebooks.
Jupyter notebooks have the file extension “. ipynb”. Clicking on files ending with “. ipynb” opens the notebook.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With