-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Unable to change conda environment in kernel #121
Comments
I got it going. The solution and additional useful commands are below: Create environment paths and init conda - this is executed from Terminal in Jupyterlabmkdir /home/jovyan/envs Install in conda base environmentconda install nb_conda_kernels # https://github.com/Anaconda-Platform/nb_conda_kernels Install new Environment and kernelconda create -p /home/jovyan/envs/python3.11 python=3.11.6 Restart container to recognize new kernelRemove kerneljupyter kernelspec list |
Not a solution for the original issue but allows me to create additional environments/kernels |
Closing as there were no contributions for a while and it seems there is a workaround. |
Hi,
I'm trying to add/change the conda/python environment and i'm unable to do so.
Steps to reproduce:
docker run --gpus all -d -it -p 8848:8888 -v /home/USER:/home/jovyan/work -e GRANT_SUDO=yes -e JUPYTER_ENABLE_LAB=yes --user root cschranz/gpu-jupyter:v1.5_cuda-11.6_ubuntu-20.04_python-only
Log into JupyterLab and add a different kernel/conda environment using the terminal
mkdir /home/jovyan/envs
conda init bash
exec $SHELL
conda create -p /home/jovyan/envs/python3.11 python=3.11
conda activate /home/jovyan/envs/python3.11
pip install --user ipykernel
python -m ipykernel install --user --name=python3.11
conda deactivate
at this point the kernel is available, but selecting the kernel gives me this
Installing packages via pip and conda end up under /opt/conda when importing them uses the 3.11 environment, and gives a ImportError error. How to fix this ?
The text was updated successfully, but these errors were encountered: