Jupyter Cheat Sheet

Install Jupyter Kernel

I always have a number of conda environments and love to use jupyter. It is fantastic to be able to start a jupyter notebook or console corresponding to any of my conda environments regardless of where I am running jupyter. Unfortunately I always forget the command to install my kernel. You must have ipykernel installed in your environment. Once this is installed and you have activated your environment you simply run the following command.

conda activate my_env
python -m ipykernel install --user --env my_env

Whenever you start jupyter you will see the option to use the kernel corresponding to my_env

You can also see what kernels you have installed with the following command.

jupyter kernelspec list

You can learn more in the IPython Docs.