Python 2 & 3 kernel inside the jupyter notebook

While solving our problems on python, Many of us might have faced the situation of kernels, the specific package supports only python 2.7 and require python 3 and there are a lot of issues while installing python kernels and running it with Jupyter notebook side by side. Here’s my solution of running python 2 and 3 on the same machine.

System Overview: I ran the kernels on MacOS Mojave version 10.14.5

installingpython3kerneljupyter Screenshot 2019-06-03 at 10.10.10 AM
My System Configuration
installingpython3kerneljupyter Screenshot 2019-06-03 at 10.06.31 AM
Step: 1

installingpython3kerneljupyter Screenshot 2019-06-03 at 10.05.55 AM
Step: 2
installingpython3kerneljupyter Screenshot 2019-06-03 at 10.05.17 AM
installingpython3kerneljupyter Screenshot 2019-06-03 at 10.06.31 AM
installingpython3kerneljupyter Screenshot 2019-06-03 at 10.07.52 AM
installingpython3kerneljupyter Screenshot 2019-06-03 at 10.06.46 AM

Its a 2 step process:

  1. Check the available kernels:
    • jupyter kernelspec list
  2. Install the Kernel:
    • python3 -m ipykernel install –user

Repeat 1st step to check the installed kernels.

Comments

comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.