Skip to content

Instantly share code, notes, and snippets.

@ejs94
Last active August 25, 2021 16:46
Show Gist options
  • Save ejs94/d4301e36189cfb6e292f287fc40975fe to your computer and use it in GitHub Desktop.
Save ejs94/d4301e36189cfb6e292f287fc40975fe to your computer and use it in GitHub Desktop.
Using anaconda virtual enviroment inside a jupyter notebook

1 - Show the list of conda virtual environment

conda env list

2 - Create a new virtual environment named trial

conda create --name trial

3 - Activate the new env

conda activate trial

4 - Install ipykernel

conda install -c anaconda ipykernel

5 - Add the trial kernel in jupyter

python -m ipykernel install --user --name=trial

6 - Launch jupyter notebook

jupyter.exe notebook

7 - Open/Create a jupyter notebook and change kernel to trial inside the kernel/change kernel 8 - You should see the name of conda env (trial) on the right

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