Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter conda tab 'An error occurred while retrieving package information.'

In my root environment I run

$ jupyter notebook

and in the browser, click on the 'Conda' tab. This always used to list my conda environments and the packages in them. Now I'm greeted by the following error.

Jupyter error box

I recently created and deleted some conda environments, maybe that is relevant. The only console output is

[W 10:30:20.948 NotebookApp] 404 GET /environments?_=1476811818902 (::1) 13.19ms referer=http://localhost:8888/tree
[W 10:30:20.951 NotebookApp] 404 GET /packages/available?_=1476811818903 (::1) 1.77ms referer=http://localhost:8888/tree
like image 888
Octavius Avatar asked Oct 18 '16 17:10

Octavius


2 Answers

See this issue: https://github.com/Anaconda-Platform/nb_conda/issues/23

The issue seems to be a conflict between the notebook config file in the conda environment and the config file in the users directory.

To fix the issue and get the tab to display properly the content, I had to remove that file:

rm jupyter_notebook_config.json in ~/.jupyter

Note that, for me, that was not an issue as it did not really contain anything.

like image 55
Adrian Klaver Avatar answered Sep 22 '22 12:09

Adrian Klaver


As pointed out at: https://github.com/Anaconda-Platform/nb_conda/issues/23#issuecomment-239813091

The following command helped in resolving the issue:

jupyter serverextension disable nb_conda
jupyter serverextension enable nb_conda

This basically rewrites the config file in the ~/.jupyter folder.

like image 20
Shubhanshu Mishra Avatar answered Sep 22 '22 12:09

Shubhanshu Mishra