ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Error loading server extension jupyter_nbextensions_configurator #1513

Open fanicey opened 4 years ago

fanicey commented 4 years ago

Hi, I followed the instructions to install jupyter-contrib-nbextensions. However, when I launch jupyter notebook, I got the following ERROR:

Error loading server extension jupyter_nbextensions_configurator
Traceback (most recent call last):                                                       
File "/apps/usr/local64/anaconda-appfraud/lib/python3.6/site-packages/notebook/notebookapp.py", line 1451, in init_server_extensions
    mod = importlib.import_module(modulename)                                                                                         
File "/apps/usr/local64/anaconda-appfraud/lib/python3.6/importlib/__init__.py", line 126, in import_module                          
    return _bootstrap._gcd_import(name[level:], package, level)                                                                       
File "<frozen importlib._bootstrap>", line 994, in _gcd_import                                                                      
File "<frozen importlib._bootstrap>", line 971, in _find_and_load                                                                   
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked                                                          
ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

I then tried the solution to a previous similar issues:

jupyter serverextension list
jupyter serverextension disable nbextensions
jupyter serverextension disable nbextensions --user
jupyter serverextension disable nbextensions --sys-prefix

_Originally posted by @jcb91 in https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1077#issuecomment-326768537_

However, it does not work. I also tried to create a new environment without jupyter-contrib-nbextensions, but again, when I launch jupyter notebook, I still got the same error message.

fanicey commented 4 years ago

Followup: I manually changed the file .jupyter/jupyter_notebook_config.json and set jupyter_nbextensions_configurator to false. Then I don't see this ERROR when launching notebook.

However, I still cannot import any module. I have the package pomegranate installed, but when I tried to import, it shows:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-1cb5711ea5a2> in <module>()
----> 1 from pomegranate import *
         2 import time
         3 import pandas as pd
         4  import numpy as np
         5 import matplotlib.pyplot as plt

ModuleNotFoundError: No module named 'pomegranate'

Before installing jupyter-contrib-nbextensions everything worked fine. All the problems happened after I tried to install it. I don't have a clue on how to solve it. Any advice? Thanks!