Hooks in ${CONDA-PREFIX}/etc/conda/activate.d/ are not triggered
See original GitHub issueThanks for providing this plugin!
The activation/deactivation scripts that can be put into ${CONDA-PREFIX}/etc/conda/{de}activate.d/
do not get triggered when I switch to a kernel in jupyterhub. We are using nb_conda_kernels-2.2.2.
The activation scripts are correctly invoked when I do a conda activate myenv
on the command line. The only workaround that I currently can think of is that users have to preload the missing part of the environment before their jupyter singleservers have been started by the hub. But this makes the whole kernel switching redundant, because it essentially prevents using another conda-env that needs a different environment. We want to use the activation hook system to combine the use of environment modules with conda-envs.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
@mcg1969 in light of the previous comment, do you have any suggestion for a fix?
The problem comes from: https://github.com/Anaconda-Platform/nb_conda_kernels/blob/f014e601115e652938dfac926a7e1698733e5ea1/nb_conda_kernels/manager.py#L193
Thanks for the reply
Make sense. I’ll try to find time to look into this a bit more.