Jupyter (iPython) notebook says "cannot find a kernel matching Python [Root]"
<p>I'm interested in using Jupyter notebooks with both Python 2 and Python 3 (one of my colleagues insists on still using Python 2 ;) ).</p>

<p>So I diligently followed the steps listed in this excellent answer: <a href="http://stackoverflow.com/questions/30492623/using-both-python-2-x-and-python-3-x-in-ipython-notebook">Using both Python 2.x and Python 3.x in IPython Notebook</a>. </p>

<p>I installed multiple kernels and now Jupyter notebooks has the option to use both Python 2 and Python 3!</p>

<p>However, I managed to somehow delete the Python[Root] kernel. Now, every time I open a notebook, it comes up with an error message and makes me choose between Python 2 and Python 3 kernel.</p>

<p>This is not the end of the world, but I'd like it to default to my Python[Root] kernel every time I open a new notebook. I use Anaconda by the way.</p>

<p>Thanks for the assistance!</p>

<p>I have not had time to fully digest the answer in the post you reference: <a href="http://stackoverflow.com/questions/30492623/using-both-python-2-x-and-python-3-x-in-ipython-notebook">Using both Python 2.x and Python 3.x in IPython Notebook</a> -- but if what you currently have isn't working properly then what I would suggest is:</p>

<ol>
<li><p>Install Anaconda if you haven't already (it sounds like you probably have done this).</p></li>
<li><p><code>conda update conda</code> to update to the latest Conda (always a good idea)</p></li>
<li><p><code>conda install anaconda=4.1.1</code> to make sure you have the latest Anaconda (well, as of this date)</p></li>
<li><p><code>conda create -n ana41py27 anaconda python=2.7</code>  to create a Python 2.7 based Conda environment that contains all the Anaconda packages</p></li>
<li><p><code>conda create -n ana41py35 anaconda python=3.5</code> to create a Python 3.5 based Conda environment that contains all the Anaconda packages</p></li>
</ol>

<p>If you have any problems with those steps, report them here or on the Anaconda mailing list.</p>

<p>Once you have that in place you can start Jupyter notebook (any way you like, pretty much), and then you will be able to create new notebooks that are either Python 2.7 or Python 3.5 based by choosing the appropriate kernel from the "New" button:</p>

<p><a href="http://i.stack.imgur.com/WLAwm.png" rel="nofollow"><img src="http://i.stack.imgur.com/WLAwm.png" alt="enter image description here"></a></p>

<p>or change between a Python 2.7 or Python 3.5 kernel from within a Notebook:</p>

<p><a href="http://i.stack.imgur.com/RGnZT.png" rel="nofollow"><img src="http://i.stack.imgur.com/RGnZT.png" alt="enter image description here"></a></p>

python ipython anaconda jupyter-notebook