MCG Code
MCG Code

Reputation: 1393

How to change kernel when Jupyter notebook shows only one Python

I need to change the kernel to point it to miniconda version of Python, but Jupyter Notebook shows only one "Python 3" under Kernel-> Change Kernel.

Any idea how to get Jupyter notebook to show the additional one installed?

Upvotes: 5

Views: 35991

Answers (3)

Nickolay
Nickolay

Reputation: 32073

More generally, for a kernel to show up in Jupyter, it must be registered in a known location.

If you're in a python environment with ipykernel installed, run a command like this to register it (docs):

python -m ipykernel install --user --name my-env --display-name "Python (my-env)"

Upvotes: 0

baduker
baduker

Reputation: 20052

If you want to manually configure (add) Python 2.7 environment, try this:

conda create -n py27 python=2.7
conda activate py27
conda install notebook ipykernel
ipython kernel install --user

Upvotes: 2

Rajdeep Pal
Rajdeep Pal

Reputation: 76

You can have a look at this and install the required kernel

https://ipython.readthedocs.io/en/latest/install/kernel_install.html

Upvotes: 2

Related Questions