Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
977 views
in Technique[技术] by (71.8m points)

jupyter notebook - Duplicate versions of nbextensions - how to know which one to delete

I want to install nbextensions for my juypter notebooks. Having followed the instructions from here, I can see the nbextensions dashboard.

However when I go to enable this I get the following error:
"This nbextension's require url (splitcell/splitcell) is referenced by two different yaml files on the server. This probably means that there are two installations of the same nbextension in different directories on the server. If they are different, only one will be loaded by the notebook, and this may prevent configuration from working correctly. Check the jupyter notebook server log for the paths of the relevant yaml files."

I find that I indeed have multiple entries....

enter image description here

This link suggests to delete one (though there are actually 3)... what I don't know is which... I don't want to delete something that then breaks my jupyter instances completely.

I have the feeling that I am not using the instance under anaconda. What do I damage if I delete this?

Appreciate any insights, and let me know if you need more information,
J

question from:https://stackoverflow.com/questions/65941670/duplicate-versions-of-nbextensions-how-to-know-which-one-to-delete

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In the meantime I took the risk and deleted the version in the --user level.

jupyter contrib nbextensions uninstall --user

Honestly I have no clue as to if that's the right way to have gone, but it seemed to have worked.

Running jupyter nbextension list still gives me the same answer as before but now the extensions work (after restarting the instance).

Whilst I do have a couple of different environments installed in conda, I did this as an experiement and only one is actively used. I tend to launch my jupyter notebooks from shell and the base environment, and then create and work in a different environment as that is where I have installed all my packages.

I'm happy to be told I'm making a pigs ear of this if someone can tell me how I should be doing this.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...