Add New Kernels to Jupyter Notebook in Conda Environment

Python package or python module autoreloading in jupyter notebook

When we fire up our jupyter notebook/lab, we might find that jupyter doesn’t load python kernels of conda environments by default. This is usually because the conda environment doesn’t have a ipykernel to be loaded by jupyter.

If you would like to add some of your conda environments to your jupyter notebook/lab, install ipykernel in your conda environment (e.g., your_env).

(your_env)$ conda install ipykernel
(your_env)$ ipython kernel install --user --name=<any_name_for_kernel>
(your_env($ conda deactivate

More can be found in the documentation ( ipython, jupyter ).

Planted: by ;

Dynamic Backlinks to til/programming/jupyter-notebook-add-new-kernels-in-conda-env:

L Ma (2019). 'Add New Kernels to Jupyter Notebook in Conda Environment', Datumorphism, 05 April. Available at: https://datumorphism.leima.is/til/programming/jupyter-notebook-add-new-kernels-in-conda-env/.