ipython-contrib / jupyter_contrib_nbextensions

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

Error loading server extension notebook_snippets #1544

Open MooersLab opened 3 years ago

MooersLab commented 3 years ago

I am stumped. I uninstall python3.9 and deleted /Users/blaine/Library/Python/3.9 and then reinstall pytnon39 and jupyter by doing the following. I am still getting Error loading server extension notebook_snippets.

/opt/local/bin/python3.9 -m pip install --user pip-autoremove
sudo pip-autoremove jupyter -y
sudo port uninstall py39-jupyter
rm -rf ~/Library/Python/3.9
sudo port install python39
sudo port select --set python3 python39
sudo port install py39-pip
/opt/local/bin/python3.9 -m pip install --user --upgrade jupyter
/opt/local/bin/python3.9 -m pip install --user --upgrade jupyterlab
/opt/local/bin/python3.9 -m pip install --user --upgrade notebook
/opt/local/bin/python3.9 -m pip install --user --upgrade jupyter_contrib_nbextensions
jupyter contrib nbextension install --user 
/opt/local/bin/python3.9 -m pip install --user --upgrade cite2c
/opt/local/bin/python3.9 -m pip install --user --upgrade ipyparallel
/opt/local/bin/python3.9 -m pip install --user --upgrade jupyterlab-snippets
/opt/local/bin/python3.9 -m pip install --user --upgrade notebook-snippets

❯ Jupiter notebook [W 13:58:22.756 NotebookApp] Cannot bind to localhost, using 127.0.0.1 as default ip [Errno 49] Can't assign requested address [W 13:58:23.012 NotebookApp] Could not find Zotero citation styles directory. [I 13:58:23.024 NotebookApp] Loading IPython parallel extension [I 13:58:23.044 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1 [W 13:58:23.047 NotebookApp] Error loading server extension notebook_snippets Traceback (most recent call last): File "/Users/blaine/Library/Python/3.9/lib/python/site-packages/notebook/notebookapp.py", line 1942, in init_server_extensions mod = importlib.import_module(modulename) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/Users/blaine/Library/Python/3.9/lib/python/site-packages/notebook_snippets/init.py", line 5, in from .snippets import snippets File "/Users/blaine/Library/Python/3.9/lib/python/site-packages/notebook_snippets/snippets.py", line 2, in from .code import numba, python, python_regex ModuleNotFoundError: No module named 'notebook_snippets.code' [I 13:58:23.051 NotebookApp] Serving notebooks from local directory: /Users/blaine [I 13:58:23.051 NotebookApp] Jupyter Notebook 6.1.5 is running at: [I 13:58:23.051 NotebookApp] http://127.0.0.1:8888/ [I 13:58:23.052 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 13:58:24.710 NotebookApp] 302 GET /tree (127.0.0.1) 1.32ms Error^C[I 13:59:13.155 NotebookApp] interrupted Serving notebooks from local directory: /Users/blaine 0 active kernels Jupyter Notebook 6.1.5 is running at: http://127.0.0.1:8888/ Shutdown this notebook server (y/[n])? ^C[C 13:59:13.328 NotebookApp] received signal 2, stopping [I 13:59:13.329 NotebookApp] Shutting down 0 kernels [I 13:59:13.329 NotebookApp] Shutting down 0 terminals ❯ ls /Users/blaine/Library/Python/3.9/lib/python/site-packages/notebook/ init.py _sysinfo.py auth config_manager.py files jstest.py nbconvert notebookapp.py services terminal tree main.py _tz.py base edit gateway kernelspecs nbextensions.py prometheus static tests utils.py pycache _version.py bundler extensions.py i18n log.py notebook serverextensions.py templates transutils.py view