Skip to content

Instantly share code, notes, and snippets.

@oscarychen
Last active February 15, 2022 17:22
Show Gist options
  • Save oscarychen/45ca3c62b7d71d911ffd150bb63ef6ee to your computer and use it in GitHub Desktop.
Save oscarychen/45ca3c62b7d71d911ffd150bb63ef6ee to your computer and use it in GitHub Desktop.
Using Conda Environments with Jupiter Notebook

Using Conda environments in Jupyter Notebook

Create a Conda environment conda create -n py38 python=3.8

Activate the environment conda activate py38

Install ipykernel pip install --user ipykernel

Add the envrionment to Jupyter python -m ipykernel install --user --name=py38

To remove the conda environment conda env remove -n py38

To remove the conda environment from Jupyter jupyter kernelspec uninstall py38

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