Conda 4.3.24 + Jupyter 4.3.0 + Python 2.7 on Windows 7, Kernels in kernelspec but not listed

34 views
Skip to first unread message

Paul Mayer

unread,
Aug 14, 2017, 7:40:21 AM8/14/17
to Project Jupyter
Hi,

I am currently trying to get a Jupyter Notebook Environment running with Python 2.7.

Using conda, I have installed ipykernel (4.6.1), nb_conda_kernels (2.1.0), jupyter (4.3.0) and Python 2.7 in a new environment.
Launching "jupyter notebook", the tab "Conda" shows all my conda environments. However, if I try to create a new Notebook, it only shows "Python 3" as kernel (which does not exist and I have no idea where it is coming from).

Trying to create the notebook, the following warning is logged:

[W 13:36:55.585 NotebookApp] Kernel not found: python3

Running jupyter kernelspec list gives the following:

Available kernels:
  python2    C:\x\y\z\jupyter\kernels\python2

The kernel.json in the folder contains:
{
 "display_name": "Python 2", 
 "language": "python", 
 "argv": [
  "python", 
  "-m", 
  "ipykernel_launcher", 
  "-f", 
  "{connection_file}"
 ]
}

Which should be fine given the %PATH% is set appropriately. Could you let me know what I can do/what to look into to fix this?

Thanks,
Paul

MinRK

unread,
Aug 20, 2017, 8:23:40 AM8/20/17
to Project Jupyter
Try running:

    python2 -m ipykernel install

This will install a Python 2 kernelspec with the absolute path to the Python 2 executable, rather than `python`.

--
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/89706bc9-b81f-428e-986b-5e06c4545f70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Mayer

unread,
Aug 22, 2017, 12:18:58 PM8/22/17
to Project Jupyter

Thanks for the suggestion.

While there's no python2 executable in the windows distribution, changing the kernel.json manually to refer to the absolute path of the python.exe apparently solved the issue. I can now see the conda environment in my jupyter notebook.

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages