I'm trying to install jupyter_contrib_nbextensionsFirst I install the python package with command pip3 install jupyter_contrib_nbextensions --user, it works fine.
But when I install javascript and css files with command jupyter contrib nbextension install --user, I get this errorError executing Jupyter command 'contrib': [Errno 2] No such file or directory.
I've tried to reinstall jupyter and this extension, it's still not ok.
System: macOS Sierra 10.12.4
Python: Python 3.6.1
IPython: IPython 5.3.0
Jupyter: Jupyter 4.3.0
Hmm, that's a little odd. Could you post the entire traceback of the command?
PS, I take it that this isn't a conda installation, given your pip usage?
The entire traceback of the command:
$ jupyter contrib
Error executing Jupyter command 'contrib': [Errno 2] No such file or directory
pip usage:
$ pip3 --version
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
$ pip3 show ipython
Name: ipython
Version: 5.3.0
Summary: IPython: Productive Interactive Computing
Home-page: http://ipython.org
Author: The IPython Development Team
Author-email: [email protected]
License: BSD
Location: /Users/youchen/Library/Python/3.6/lib/python/site-packages
Requires: pexpect, pygments, prompt-toolkit, pickleshare, setuptools, simplegeneric, appnope, decorator, traitlets
$ pip3 show jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
License: BSD
Location: /Users/youchen/Library/Python/3.6/lib/python/site-packages
Requires: qtconsole, ipykernel, nbconvert, jupyter-console, ipywidgets, notebook
$ pip3 show jupyter_contrib_nbextensions
Name: jupyter-contrib-nbextensions
Version: 0.2.6
Summary: A collection of Jupyter nbextensions.
Home-page: https://github.com/ipython-contrib/jupyter_contrib_nbextensions.git
Author: ipython-contrib and jupyter-contrib developers
Author-email: [email protected]
License: BSD
Location: /Users/youchen/Library/Python/3.6/lib/python/site-packages
Requires: ipython-genutils, nbconvert, psutil, pyyaml, jupyter-core, jupyter-latex-envs, notebook, jupyter-highlight-selected-word, jupyter-nbextensions-configurator, tornado, traitlets, jupyter- contrib-core
Hmm, seems like the contrib command isn't on the path for some reason. Could you try a sudo updatedb, and then post the output of
sudo locate jupyter-nbextension
and then
sudo locate jupyter-contrib
it seems this may be related to issues mentioned in https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/713#issuecomment-261663024
Yeah #713 solved my issues.
It turns out that I firstly install jupyter with sudo pip3 install jupyter, it's installed to a system path, but later I install jupyter_contrib_nbextensions with pip3 install --user jupyter_contrib_nbextensions, it's installed to ~/Library/Python/3.6/bin, but this is not included in my PATH, so this error occurs.
What I've done is uninstall all related packages about jupyter and reinstall with pip3 install --user * and update my PATH, now it works fine.
@jcb91 , Thanks.
no problem, glad you got it sorted :smile:
Hi may I know the precise step by step how to uninstall the related Jupiter and then reinstall and update the path, i am quite lost