Jypyter Notebook works by default with anaconda_3 and Python_3.6. Now I begin the task, where it is highly recommended to do everything in the second Python.
How to add a choice of two Pythons? Will all existing packages (scikit-learn first) and dependencies work with the second Python? OS Ubuntu_16

  • Jypyter Notebook - local? Do you use VirtualEnv? - MaxU

1 answer 1

Starting with Anaconda 4.1.0, you can do this:

conda create -n py27 python=2.7 ipykernel conda create -n py36 python=3.6 ipykernel 

for older versions, you can register "kernels" manually :

Python 2.7:

 conda create -n py27 python=2.7 source activate py27 conda install notebook ipykernel ipython kernel install --user 

Python 3.6:

 conda create -n py36 python=3.6 source activate py36 conda install notebook ipykernel ipython kernel install --user 

After that, Jupyter Notebook should be able to choose Python 2 or Python 3

PS more about this can be found in this wonderful answer from the English version of SO

  • There, on a local forum, I found advice - to lower the version of the package, it is better and easier than for one task to change the entire distribution of Python. I did there, the answer came. Thank you very much for the full useful answer, I will save it. - Boris Mirsky