Using conda to install a new kernel into your notebook

From HPCwiki
Revision as of 16:42, 10 July 2020 by Haars001 (talk | contribs) (Created page with "As you can read here, you can add a new kernel to your Jupyter manually. If you use conda, the following steps...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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