Skip to content

Instantly share code, notes, and snippets.

@curlup
Forked from James-Leslie/jupyter-envs.md
Created April 13, 2023 22:21
Show Gist options
  • Save curlup/c93b6dd6acae64b806829e0832db99c0 to your computer and use it in GitHub Desktop.
Save curlup/c93b6dd6acae64b806829e0832db99c0 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