Jupyter-contrib / jupyter_nbextensions_configurator

A jupyter notebook serverextension providing config interfaces for nbextensions.
Other
981 stars 121 forks source link

nbextension has duplicate listings #134

Open malapradej opened 3 years ago

malapradej commented 3 years ago

I get the following warnings when opening a jupyter notebook --no-browser session on our server, the moment I click on the http link to open it on my local browser. (note this is not a duplicate)

[W 06:15:24.070 NotebookApp] [jupyter_nbextensions_configurator] nbextension 'addbefore/main' has duplicate listings in both '/usr/local/share/jupyter/nbextensions/addbefore/addbefore.yaml' and '/home/jacques.malaprade/anaconda3/share/jupyter/nbextensions/addbefore/addbefore.yaml' [W 06:15:24.071 NotebookApp] [jupyter_nbextensions_configurator] nbextension 'autosavetime/main' has duplicate listings in both '/usr/local/share/jupyter/nbextensions/autosavetime/autosavetime.yaml' and '/home/jacques.malaprade/anaconda3/share/jupyter/nbextensions/autosavetime/autosavetime.yaml' etc.....

There are other issue pages the deal with this by requiring the local or system-wide installation to be removed using jupyter contrib nbextensions uninstall --system or jupyter contrib nbextensions uninstall --user. I would rather use the user install but have no permissions to uninstall the system install. Is there a way to get around this? ie. only use the user install without having to uninstall the system install.

JH-Lam commented 1 year ago

same issue in Mac .did you solve it ?

russtoku commented 1 year ago

This is rather late but I hope it helps. I had the same trouble on MacOS.

According to the jupyter_contrib_nbextensions docs about Conda installation, you don't need to run jupyter contrib nbextensions install or some variation of it.

I didn't read the installation docs before installing the nbextensions so I ended up with the duplicate listings warnings. To fix the problem, I removed the /usr/local/share/jupyter directory because it is duplicating the share/jupyter/nbextensions directory in the Conda/Anaconda environment.