-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named 'jupyter_nbextensions_configurator' #1115
Comments
Hmm, the only thing I can think of would be if somehow the packages have been installed into a different python (virtual?) environment than the one you're using to run the notebook server - how are you running the server? Are you using virtualenv, conda, or any other environment manager? |
Thanks for the quick reply. I only now installed virtualenvwrapper but i didn't have it before. I was just running |
Possibly. It seems as though your apt-installed So, to shed some light on this, you might try in a terminal: which python
which jupyter
which jupyter-notebook
which jupyter-nbextensions_configurator and from a notebook and a command-line python prompt, try import os
from jupyter_nbextensions_configurator import __file__
print(os.path.realpath(__file__)) |
also which pip |
Just to be sure, I did a clean install in a virtual environment and get:
However, inside a notebook:
Very strange. |
I now re-installed everything from inside the jupyter notebook: %%sh
pip install --user jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user ...no error returned. It even reports:
However: %%sh
which pip
which jupyter
which jupyter_contrib_nbextensions
which jupyter_nbextensions_configurator gives:
and |
I think there is a problem with my jupyter and/or pip installation, as whatever I install using pip is not available in the jupyter notebook. |
Yes, this is getting confusing 😕 It seems to stem from environment (paths) not being conserved from the virtualenv to the notebook server-spawned kernels. You were running the notebook server from the virtualenv I suppose? I'm not sure how the Anyway, there are a couple of things to address here:
|
Following https://stackoverflow.com/questions/32680081/importerror-after-successful-pip-installation#32680082, I now used %%sh
python -m pip install --user jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
python -m pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user After re-starting the notebook, the Nbextensions tab appeared. Actually, I think I executed the above code within a notebook that was run from outside the virtualenv, not sure. Thanks for your help! I don't understand what happened there, but it seems to work now. |
🤣 I can't say I understand either, but I'm glad you got it working eventually! |
i met the same problem in windows10 with python 3,6 |
@wangzihan11 In my case, the notebook kernel was from a virtual environment but I was launching jupyter from the global environment. I have the jupyter_contrib_nbextensions installed on my global environment but not in the virtual environment. So when running the following jupyter command The way fixed it was to install the jupyter_contrib_nbextensions in the venv: |
I had trouble installing in my new mac, which already came with python3. I installed Jupyter through brew. Not sure if this will help anyone, but I'll include what worked for me below. When I would start the notebook, I would get:
First, if you installed these from within jupyter, uninstall them (use python or python3 as needed based on your environment):
Similarly, uninstall them through terminal if you installed them there too. Within jupyter, run these separately:
restart jupyter and good luck! |
In case this helps anyone, I tried this with a brand new environment and when this error comes up, installing
|
I just ran into the same problem again and found my own thread, but now with these updates, thanks to everyone! I can confirm that @oscgonfer gave the best solution. Avoid |
On the newest debian, I installed nbextensions using:
No error messages, but when I start the jupyter notebook, I get:
Curiously, I don't get an error message if I execute in python:
jupyter_nbextensions_configurator
Does anyone have an idea what might have gone wrong?
I even tried uninstalling and re-installing directly from master, but with the same result.
The text was updated successfully, but these errors were encountered: