Using conda to install a new kernel into your notebook

From HPCwiki
Jump to navigation Jump to search

As you can read here, you can add a new kernel to your Jupyter manually.

If you use conda, the following steps can be used to create the necessary files, and share your environment :

Install:

conda create -y -n kernel_test python=3 ipykernel && conda activate kernel_test
python -m ipykernel install --user --name kernel_test

Cleanup (make sure you have activated the right enviroment):

 jupyter kernelspec uninstall kernel_test
 conda deactivate && conda remove -y -n kernel_test