Skip to content

Instantly share code, notes, and snippets.

@jvrsgsty
Last active October 3, 2018 17:39
Show Gist options
  • Save jvrsgsty/2500d5de9ac3556e5af1c4ea9398c788 to your computer and use it in GitHub Desktop.
Save jvrsgsty/2500d5de9ac3556e5af1c4ea9398c788 to your computer and use it in GitHub Desktop.
Conda Cheatsheet

Notes on Conda envs and Jupyter kernels

General conda commands

conda env list
conda env remove --name some-env

Creating new conda envs

I like specifying the python version, since it will install an env-local version of python, pip, etc. which provides better isolation for projects with complicated dependencies.

conda create -n myenv python=3.4

Installing a jupyer kernel for a conda env

This is cool for using Jupyter Notebooks and easily switching between your registered conda environments

source activate myenv
conda install pip
conda install ipykernel # or pip install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment