Error loading Jupyter Notebook Extensions

前端 未结 7 1973
南旧
南旧 2021-02-07 09:54

I am using a Macbook with OS Sierra, and running Python 3.6.1 and Jupyter Notebook Server 5.0.0 I installed Jupyter Notebook extensions, following the instructions as mentioned

相关标签:
7条回答
  • 2021-02-07 10:30

    I had the same error for a long time. Reinstalling nbconfig, changing settings, giving it extra time to load, validating installation before opening the notebook, etc. did not help.

    What worked for me in the end was switching browsers! I switched from Safari on my Mac to Chrome and things are working perfectly! (Safari Version 13.0.2, mac OS High Sierra 10.13.6, Chrome Version 83.0.4103.61)

    0 讨论(0)
  • 2021-02-07 10:33

    I had the same problem, but I notice in the README of jupyterlab this:

    Prerequisites

    Jupyter notebook version 4.3 or later. To check the notebook version:

    jupyter notebook --version

    So, try to check your version with that command, if returns a version lower than 4.3, try update it:

    conda update notebook

    That is how I solved the problem.

    0 讨论(0)
  • 2021-02-07 10:34

    I solved this problem by removing jupyter-notebook, jupyter_contrib_nbextensions, and jupyter_nbextensions_configurator, and starting it from scratch.

    Note: It only works on Anaconda environment.

    Uninstallation

    For the different source of installation, you can remove these package through:

    pip uninstall jupyter
    pip uninstall jupyter_contrib_nbextensions
    pip uninstall jupyter_nbextensions_configurator
    

    or

    conda remove --force jupyter notebook
    conda remove --force jupyter_nbextensions_configurator
    conda remove --force jupyter_contrib_nbextensions
    

    But I'd advise you to run both of the above commands.

    Installation

    It's better to install all the packages from anaconda:

    conda update notebook
    conda install jupyter notebook
    conda install -c conda-forge jupyter_nbextensions_configurator
    conda install -c conda-forge jupyter_contrib_nbextensions
    
    
    0 讨论(0)
  • 2021-02-07 10:45

    It looks, from the server traceback, as though you've potentially got something weird going on with multiple python installs. Note that you're installing into a python in

    /usr/local/lib/python3.6
    

    but your notebook server traceback goes from there (where notebookapp seems to be running), but crosses over (in the importing call) to running from a (homebrew?) Python installed at

    /usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6
    

    A potentially hackish solution might be to just install into that cellar, and carry on as before, but I'd suggest maybe a little more investigation to decide why this is happening. Of relevance may be how you start the notebook server, install modules, run terminals, setup python paths, etc...

    0 讨论(0)
  • 2021-02-07 10:45

    I solved my problem by switching to the base environment in Anaconda and installing those packages. At the very beginning, I created a new environment in Anaconda because some conda-forge packages could not be installed. I used 'pip install' in my new environment. I installed those packages and the tab was not showing. The reason is even if I activated the new environment, the jupyter notebook is still initialed in the base environment. That is why the jupyter nootbook said 'no module found' in the beginning.

    0 讨论(0)
  • 2021-02-07 10:47

    I had the same problem. Here is how I solved it.

    I have downloaded Anaconda python version 3.7. I already had Python 3.6.7 on my system.

    I'd get this error if I did:

    pip install jupyter_contrib_nbextensions
    

    To solve it, I did:

    python3.7 -m pip install jupyter_contrib_nbextensions
    

    I have not tried this, but this could solve your problem too:

    conda install -c conda-forge jupyter_nbextensions_configurator
    

    So I guess the problem is because of there being multiple versions of Python on your system. The one which Anaconda uses and the one which the "normal pip" uses are probably different.

    0 讨论(0)
提交回复
热议问题