Using conda to install a new kernel into your notebook: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
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..."
 
(No difference)

Latest revision as of 15:42, 10 July 2020

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