Skip to content

Instantly share code, notes, and snippets.

@supriya-premkumar
Last active June 27, 2017 20:28
Show Gist options
  • Save supriya-premkumar/99b238a64f9d8c53ce6e80bbdc09fa85 to your computer and use it in GitHub Desktop.
Save supriya-premkumar/99b238a64f9d8c53ce6e80bbdc09fa85 to your computer and use it in GitHub Desktop.
Adding Python2 and Python3 kernels in Jupyter Notebook

Check Jupyter Kernel Spec List

jupyter kernelspec list
Which displays available python version in the jupyter kernel

Adding Python2 to the Jupyter Kernel

python2.7 -m pip install --upgrade ipykernel
python2.7 -m ipykernel install

Check for the installed python2 version in the kernel
jupyter kernelspec list

Adding Python3 to the Jupyter Kernel

python3.6 -m pip install --upgrade ipykernel
python3.6 -m ipykernel install --user

Check for the installed python3 version in the kernel
jupyter kernelspec list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment