Cannot get python3 in Jupyter laptop

How can I run python3 in jupyter? I can not get him to supply this core. When I run ipython3 notebook on the terminal, I check the version of Python:

 import sys print(sys.version) 

where i get the output:

 3.4.0 (default, Jun 19 2015, 14:20:21) [GCC 4.8.2] 

When I run jupyter notebook , I only have the option of a new python 2 laptop and

 import sys print(sys.version) 

where i get the output:

 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] 

I am trying to run:

 sudo ipython3 kernelspec install-self [TerminalIPythonApp] WARNING | File not found: 'kernelspec' 
+6
source share
1 answer

I had the same problem, but it was solved by creating a virtual disk using Python3 as the Python binary; iPython installed and launched the iPython laptop from virtualenv. I will check if the same procedure works with Jupyter (I expect it to be). Note that when I did this, I had the opportunity to make Python 3 notebooks.

The following steps worked for me:

 mkvirtualenv --python=/full/path/to/python3.5 p35 pip install jupyter jupyter notebook 

A webpage appeared and I was allowed to create a Python 3 laptop.

+3
source

All Articles