Skip to content

Instantly share code, notes, and snippets.

@James-Leslie
Created October 5, 2020 07:12
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save James-Leslie/734babcbc1dd3f5fbc828af773922497 to your computer and use it in GitHub Desktop.
Save James-Leslie/734babcbc1dd3f5fbc828af773922497 to your computer and use it in GitHub Desktop.
How to add conda environment to jupyter lab

How to add conda environments to JupyterLab

Credit for this goes to the Stack Overflow user Statistic Dean for his post on this question

1. Install nb_conda_kernels into your base environment

(base)$ conda install -c conda-forge nb_conda_kernels

2. Activate desired environment and install ipykernel

(base)$ conda activate my-env
(my-env)$ conda install ipykernel
(my-env)$ conda deactivate

my-env is now available to use whenever you run Jupyter Lab (from your base env)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment