Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add python3 kernel to jupyter (IPython)

My Jupyter notebooks installed with python 2 kernel. I do not understand why. I might have messed something up when I did the install. I already have python 3 installed. How can I add it to Jupyter? Here's a screenshot of what the default Jupyter insalled with python3 -m install jupyter and opened in the browser with jupyter notebooklooks like: enter image description here

like image 850
quickbug Avatar asked Mar 03 '15 12:03

quickbug


People also ask

How do I change the kernel of a Jupyter Notebook in Python?

To select the kernel in a CoCalc Jupyter notebook, click the “Kernel” button (usually in the middle toolbar, depending on your configuration). In the menu that opens, scroll down past interrupt and restart commands to see the choices for available kernels.


1 Answers

This worked for me on Ubuntu 16.04:

python2 -m pip install ipykernel python2 -m ipykernel install --user  python3 -m pip install ipykernel python3 -m ipykernel install --user 

Reference to the documentation:
Kernels for Python 2 and 3. Installing the IPython kernel - IPython Docs.

like image 167
Jana Avatar answered Oct 25 '22 08:10

Jana