Missing kernel

28 views
Skip to first unread message

testb...@gmail.com

unread,
Apr 11, 2017, 4:05:42 PM4/11/17
to Project Jupyter
Hi,
I have both anaconda2 and anaconda3 installed.
However, when I run jupyter kernelspec list, I don't  see python2 kernel which is under the below directory.

/anaconda2/lib/python3.5/site-packages/ipykernel/resources directory.

I even tried adding /anaconda2/bin in the PATH and still no luck.
Appreciate any help or details to fix this issue.

Thanks,



Thomas Kluyver

unread,
Apr 12, 2017, 4:25:26 AM4/12/17
to Project Jupyter
The locations in site-packages aren't part of the normal search path for kernelspecs - there's a special fallback to try looking for ipykernel on the same Python installation if the kernelspec is not installed.

You can see the locations it looks for kernelspecs by running jupyter --paths (add /kernels to each path in the *data* section).

Thomas

--
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/12124241-7c4a-400d-a12c-3b2a2c3013ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

testb...@gmail.com

unread,
Apr 12, 2017, 6:42:41 AM4/12/17
to Project Jupyter
Thanks for the details!

If python2 and python 3 kernels need to be available for all users, do the kernels need to be in /usr/share/local/jupyter/kernels directory?
I also saw the python3 kernel under site_packages directory when I ran jupyter kernelspec list command before running the command to install the python kernels under /usr/share/local/jupyter/kernels. I thought if the kernel is under site_packages, it can be used by all user. Is this correct?

Could you please clarify which is the standard location for the kernels - python 2 and python3 in order to be used by all users?


On Wednesday, April 12, 2017 at 3:25:26 AM UTC-5, takowl wrote:
The locations in site-packages aren't part of the normal search path for kernelspecs - there's a special fallback to try looking for ipykernel on the same Python installation if the kernelspec is not installed.

You can see the locations it looks for kernelspecs by running jupyter --paths (add /kernels to each path in the *data* section).

Thomas
On 11 April 2017 at 21:05, <testb...@gmail.com> wrote:
Hi,
I have both anaconda2 and anaconda3 installed.
However, when I run jupyter kernelspec list, I don't  see python2 kernel which is under the below directory.

/anaconda2/lib/python3.5/site-packages/ipykernel/resources directory.

I even tried adding /anaconda2/bin in the PATH and still no luck.
Appreciate any help or details to fix this issue.

Thanks,



--
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+u...@googlegroups.com.

Thomas Kluyver

unread,
Apr 12, 2017, 9:36:18 AM4/12/17
to Project Jupyter
On 12 April 2017 at 11:40, <testb...@gmail.com> wrote:
I also saw the python3 kernel under site_packages directory when I ran jupyter kernelspec list command before running the command to install the python kernels under /usr/share/local/jupyter/kernels. I thought if the kernel is under site_packages, it can be used by all user. Is this correct?

If all users will be running Jupyter on the same Python installation, then yes. Each Python installation or environment has its own site-packages; Jupyter will look in the site-packages corresponding to the Python it is running in.
 
Could you please clarify which is the standard location for the kernels - python 2 and python3 in order to be used by all users?

There isn't one standard location, it's a search path of several locations that it looks at:
http://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html#data-files

Plus a fallback to find a Python kernel in site-packages.

Thomas
Reply all
Reply to author
Forward
0 new messages