Anaconda's default kernel is named "Python [Root]", not pyhton3. Why?

4,180 views
Skip to first unread message

Paul A

unread,
Jul 8, 2016, 11:39:50 AM7/8/16
to Project Jupyter
1. Clean-install latest Anaconda 3.5.1 x64 distro
2. Start jupyter notebook
3. Check that the default kernel is listed as "Python [Root]"
4. Execute jupyter kernelspec list
5. Observe that the output is python3 (still pointing to Anaconda)

Why the inconsistency?

Matthias Bussonnier

unread,
Jul 8, 2016, 1:53:40 PM7/8/16
to jup...@googlegroups.com
That's likely an anaconda things. They might ship with a kernel
manager that understand conda environment.
the in bracket part is likely the environment of the Python you will
be starting, it you have none, it's likely picking up the Root
environment.

--
M
> --
> 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.
> 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/8a4f98dd-d390-4269-8072-c90229659050%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Paul A

unread,
Jul 13, 2016, 4:16:03 AM7/13/16
to Project Jupyter
Any idea which config to patch to get it renamed back to python3?

Damián Avila

unread,
Jul 17, 2016, 8:32:54 PM7/17/16
to jup...@googlegroups.com
Paul, sorry to be late here...

nb_conda_kernels is actually creating kernelspecs on the fly for each conda environment where you have jupyter installed.

The main idea behind nb_conda_kernels is being able to start a notebook server and quickly change between conda environments without killing the notebook sever, changing the environment and starting the notebook server again. You JUST select the "environment" from the Kernel menu and you are done, you are ready to work in that environment in just one step. 

The python[root] environment is actually pointing to the ipykernel in the Root environment which is most likely the path you see when you call jupyter kernelspec list from the jupyter living in the root environment...

nb_conda_kernels is removing the native Python3 kernel reference and adding this python "root" kernelspec to achieve consistency, otherwise Python3 and python[root] are pointing to the very same python if you are working with jupyter installed in the root environment (probably a big % of the use cases).

Finally, if you want to go back to the previous experience, you can always conda remove nb_conda_kernels because it is just an "extension" on top of the jupyter package which is installed by default in Anaconda.

Eventually, nb_conda_kernels should be able to deal better with preexisting ipynb containing the Python3/Python2 reference...



For more options, visit https://groups.google.com/d/optout.



--
Damián

Vitaly Kravchenko

unread,
Jul 30, 2016, 10:56:53 AM7/30/16
to Project Jupyter

Nicholas Bollweg

unread,
Aug 1, 2016, 12:23:18 PM8/1/16
to Project Jupyter
We've released versions of `nb_conda`, `nb_conda_kernels` and `nb_anacondacloud` through the official Anaconda conda repos that should resolve the issues you are seeing!

conda update nb_conda nb_conda_kernels nb_anacondacloud

As-installed kernel names that are eligible for being `default` (e.g. `python2`, `python3`, `ir`, etc.) will be maintained unmodified, so they should always appear there.

The downside is as many as three options for the current env, i.e. if you are in root, you will see Python 2 and Python [root] and Python [default], you can now reproducibly capture which environment your kernel should run against.

meta: https://github.com/Anaconda-Platform/anaconda-nb-extensions/issues/166

Matthias Bussonnier

unread,
Aug 1, 2016, 2:06:14 PM8/1/16
to jup...@googlegroups.com
Thanks a lot Nick for doing that on top of organizing JupyterDays Atlanta !

--
M
> --
> 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.
> 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/e9878d02-e498-4193-8160-5e91c82931e6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages