jupyter contrib nbextension install --user fails
Asked Answered
O

3

1

On a conda installation installed via -c conda-forge, trying to install nbextensions via

jupyter contrib nbextension install  --user

Results in

    usage: jupyter-contrib [-h] [--debug] [--generate-config] [-y] [--log-level JupyterContribApp.log_level] [--config JupyterContribApp.config_file]                    [extra_args [extra_args ...]]
jupyter-contrib: error: argument --user: expected one argument

Did the procedure change recently?

Outwork answered 27/1, 2021 at 11:30 Comment(0)
B
1
  1. pip3 install jupyter_nbextensions_configurator
  2. jupyter nbextensions_configurator enable --user
  3. jupyter notebook --ip=192.168.10.169 --no-browser --allow-root
  4. pip3 install jupyter_contrib_nbextensions
  5. jupyter contrib nbextension install --user
Bittner answered 4/6, 2022 at 13:51 Comment(0)
B
0

I know how to solve it.

For Win10, add "-" to:

jupyter-contrib-nbextension install --user
Binah answered 16/7, 2023 at 2:17 Comment(0)
D
0

The Solution worked for me:

Running the below commands solved the issue for me!

conda install -c conda-forge notebook
conda install -c conda-forge jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user

Update:
Python 3.11.5
Version info of core jupyter packages installed (jupyter --version):

IPython          : 8.25.0
ipykernel        : 6.29.3
ipywidgets       : 8.1.3
jupyter_client   : 7.4.9
jupyter_core     : 5.7.2
jupyter_server   : 2.14.1
jupyterlab       : 4.2.1
nbclient         : 0.10.0
nbconvert        : 7.16.4
nbformat         : 5.10.4
notebook         : 6.5.7
qtconsole        : 5.5.2
traitlets        : 5.14.3
Devastating answered 6/6 at 21:48 Comment(3)
What specific version of notebook did this install for you? This original post is from 2021, over three years ago now. So back then the prevailing version of Jupyter notebook was much better. Now there is Jupyter Notebook 7+ that doesn't work with jupyter_contrib_nbextensions. This is explained here, sort of. Jupyter Notebook 7+ is built on the same components and so what was written there years ago holds for Jupyter Notebook 7+. Hopefully now you understand why this is important to specify the version.Dinsdale
@Dinsdale Version info has been updated. In the case of Jupyter Notebook 7+, read the guide hereDevastating
That last 'In the case...' comment would be better a part of your answer if you are going around unearthing old posts with incomplete information. Plus where you reference doesn't have the complete picture about this particular extensions package. It would be better with the link I suggest and the one you last suggest.Dinsdale

© 2022 - 2024 — McMap. All rights reserved.