Add Python2 Kernel

247 views
Skip to first unread message

testb...@gmail.com

unread,
Mar 30, 2017, 6:04:13 AM3/30/17
to Project Jupyter
Hi,
Could anyone please shed some light on the below?
I have both anaconda2 and anaconda3 installed. However, I see only anaconda 3's python 3 kernel in the kernels list when I list the available kernels using 'jupyter kernelspec list'.

Also, in jupyterhub, I don't see anaconda2's python kernel. Could anyone please let me know how to add python2 kernel from anaconda2 to the kernels list?


Thanks in advance!

MinRK

unread,
Mar 31, 2017, 4:56:23 AM3/31/17
to Project Jupyter
You'll need to install the Python 2 kernelspec somewhere that the Python 3 server can see it. If you do:

    /path/to/anaconda2/bin/python -m IPython kernel install

that should install the Python 2 kernelspec in `/usr/local/share/jupyter/kernels` and make it available to any Jupyter instance.

-Min


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/200f0acd-a6c5-44b9-bc82-a269be3678f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

testb...@gmail.com

unread,
Apr 4, 2017, 9:54:32 AM4/4/17
to Project Jupyter
Thanks! Missed this post.

I have Anaconda 2 and 3 installed. I have also JupyterHub and Jupyter notebook installed.

When I run jupyter kernelspec list command, I now see the python2 and python3 kernel picked up from the below location.

python3     /anaconda3/lib/python3.5/site-packages/ipykernel/resources
python2     /usr/local/share/jupyter/kernels/python2


1. Could  you let me know why python2 is picked up from a different location instead of (/anaconda2/lib/python2.7/site-packages/ipykernel/resources)?

2. If python2 or python3 location is incorrect, how can I change them?

Thanks again!

I will close my other post which I created with a similar question.
Reply all
Reply to author
Forward
0 new messages