Sumax
Sumax

Reputation: 719

Installing Jupyter Extension, Failure to Enable 'nbextension'

I'm posting this question as I couldn't solve this problem upon multiple sifting/troubeshooting on SO, etc.

I have all the below packages successfully installed, a pip list, conda list shows:

enter image description here

The code I used to install the packages:

!pip install jupyter_contrib_nbextensions
!pip install https://github.com/ipythoncontrib/jupyter_contrib_nbextensions/tarball/master
jupyter contrib nbextension install --user

I also tried the last line with

jupyter contrib nbextensions install --sys-prefix --skip-running-check

I end up getting error:

File "<ipython-input-5-1c0e089b301b>", line 1
    jupyter contrib nbextension install --user
                  ^
SyntaxError: invalid syntax

When running on terminal in Administrator mode, I get:

C:\WINDOWS\system32>python -m pip install jupyter_contib_nbextensions
Collecting jupyter_contib_nbextensions
ERROR: Could not find a version that satisfies the requirement jupyter_contib_nbextensions (from versions: none)
ERROR: No matching distribution found for jupyter_contib_nbextensions

What am I missing here? I also tried upgrading jupyter, ipython; thanks in advance.

Upvotes: 5

Views: 17178

Answers (2)

Aayush Bhattacharya
Aayush Bhattacharya

Reputation: 1934

add !

i was copy pasting the commands from youtube video. so didnt checked properly i was running

jupyter contrib nbextension install --user

and this was giving me error but there should be a "!" on start. it should be

!jupyter contrib nbextension install --user

Upvotes: 0

user11154441
user11154441

Reputation: 208

  1. You have to prefix it by ! when running on the notebook. Hence the invalid syntax.

!jupyter contrib nbextension install --user
  1. Typo on what you’re trying to install. Hence the error. contib should be contrib:

python -m pip install jupyter_contrib_nbextensions

Hope it helps.

Upvotes: 16

Related Questions