Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need source activate done before notebook based on kernel/conda env launched #54

Closed
davidslac opened this issue Dec 7, 2016 · 4 comments
Labels

Comments

@davidslac
Copy link

My colleagues are standing up a jupyterhub to allow users to select conda environments I maintain. They setup a environment to run jupyterhub out of a python 3 conda environment, and then users select a python 2.7 conda environment. The issue is that once the kernel has started, the environment has issues. In particular the PATH still points to the python 3 environment jupyterhub runs from.

The conda environements I maintain set environment variables using the

etc/conda/activate.d/env_vars.sh 

mechanism. It does not appear that the jupyterhub ipython mechanism has done anything like a source activate for the environment for the kernel. How does this work?

@damianavila
Copy link
Contributor

It does not appear that the jupyterhub ipython mechanism has done anything like a source activate for the environment for the kernel. How does this work?

That's correct, nb_conda_kernels is creathing a kernespec on the fly pointing to the environment where jupyter (ipykernel) is detected.

I think you are experiencing something like this: #19

@jankatins
Copy link

@davidslac if you really need activate support, you might like to look at Cadair/jupyter_environment_kernels#29.

@mcg1969
Copy link
Collaborator

mcg1969 commented May 26, 2018

I'm working on this in #80

@mcg1969
Copy link
Collaborator

mcg1969 commented Aug 24, 2018

Fixed in #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants