anaconda / nb_conda_kernels

Package for managing conda environment-based kernels inside of Jupyter
BSD 3-Clause "New" or "Revised" License
601 stars 70 forks source link

CONDA_ENVS_PATH ignored? #143

Closed dfeich closed 8 months ago

dfeich commented 5 years ago

I am experimenting with using CONDA_ENVS_PATH to make various environments visible to our jupyterhub users. In the script for starting up the user's singleuser-server this variable is set and I can confirm it also in the output of a "conda info -a" that I run before the user's jupyter process is started. Also all of the envs from CONDA_ENVS_PATH are visible there. However, in the running jupyter notebook I can only see the envs which belong to the path of the base env and the user's default location at ~/.conda/envs. It seems that CONDA_ENVS_PATH is ignored when searching for available kernels.

I am using nb_conda_kernels 2.2.1.

Thanks

mcg1969 commented 4 years ago

Sorry for the delay on this one. But nb_conda_kernels is not responsible for enumerating the environments—that it delegates, as it should in my view, to conda itself. In particular, if conda info --envs cannot see an environment, then nb_conda_kernels will not be able too, either.

mcg1969 commented 4 years ago

So I guess the question is, are you sure that the CONDA_ENVS_PATH environment variable is making it to the process that is running nb_conda_kernels? My guess is that it is not.