Skip to content

Instantly share code, notes, and snippets.

@CatChenal
Last active September 20, 2023 19:48
Show Gist options
  • Save CatChenal/174884133d84cebb9ab7e14e2a612b07 to your computer and use it in GitHub Desktop.
Save CatChenal/174884133d84cebb9ab7e14e2a612b07 to your computer and use it in GitHub Desktop.
Conda environment creation & kernel installation

Conda environment creation & kernel installation

Update: A simpler alternative is to install nb_conda_kernels, which makes accessible all defined environments.

Two commands to run when creating a new env:

# 1. Env creation: always include ipykernel (could be place in .condarc)
conda create --name env310 python=3.10 ipykernel numpy
# 2. Kernel installation: makes env available in jupyter's kernels list
python -m ipykernel install --user --name=env310 --display-name "py310"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment