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

would like to install on system level #48

Closed
joequant opened this issue Jul 10, 2020 · 1 comment · Fixed by #52
Closed

would like to install on system level #48

joequant opened this issue Jul 10, 2020 · 1 comment · Fixed by #52
Labels
question Further information is requested

Comments

@joequant
Copy link

What i would like to do is to install jupyter_conda at the system level to allow users to set up their own local conda environments.
however when I try to install conda with pip i get

[joe@mcdull extensions]$ pip3 install nb-conda-kernels
ERROR: Could not find a version that satisfies the requirement nb-conda-kernels (from versions: none)
ERROR: No matching distribution found for nb-conda-kernels

Any pointers for allowing me to do something like this?

@fcollonval fcollonval added the question Further information is requested label Jul 14, 2020
@fcollonval
Copy link
Member

Hey @joequant

The main hypothesis is that you are using/must use conda. So to achieve this, you need to install the base conda environment at the system level. And in that environment you will install jupyterlab or notebook, nb-conda-kernels and this extension.

The tricky part is to enable the base conda environment for all users in their terminal. For that you could take a look at the miniconda dockerfile.

The trick lies in https://github.com/ContinuumIO/docker-images/blob/master/miniconda3/debian/Dockerfile#L14
where you link the conda init script to /etc/profile.d so it gets loaded for all users:
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh

The last trick you will need is to activate the base environment for each user (conda activate base).

Note: nb_conda_kernels is only available as conda package. So pip will never find it.

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

Successfully merging a pull request may close this issue.

2 participants