3 ms·
If you are planning to use python 3 for teaching, you should keep away from IPython/this article. I just tried it with python 3.3. The readme says : "Officiall
by infocollector 13y ago
If you are planning to use python 3 for teaching, you should keep away from IPython/this article. I just tried it with python 3.3. The readme says :
"Officially, IPython requires Python version 2.7, or 3.3 and above."
When you try to run IPython using python 3.3.0:
File ".\IPython\config\application.py", line 288
print os.linesep.join(lines)
^
SyntaxError: invalid syntax
- japhyr 13y agoWhat did you try to do? I am running Ubuntu 12.04, with several versions of Python installed including 2.7 and 3.3. I have the following packages installed: ipython, ipython-notebook, ipython3, and ipython3-notebook. When I am developing most of these notebooks, I run 'ipython3 notebook'. When I need to make a cell using Python 2.7, I close the ipython3 server and run 'ipython notebook'. Am I missing something?
- akiselev 13y agoPrint in Python 3.3 uses parentheses (it's a function now) which might mean you have the wrong version installed.
- herge 13y agoMost distributions use two binaries: ipython (for python 2.x) and ipython3 specifically for python 3, unfortunately.
- zokier 13y agoAs others have noted, IPython itself works perfectly fine with Python 3.3 (I'm running it with 3.3.2 here). There must be something wrong with your configuration, or you might have some very old version of IPython (<0.11, released on 31 July 2011)
- ngoldbaum 13y agoYou might want to file a bug, report to one of the IPython mailing lists, ask a question on StackOverflow, ask a question in the IPython hipchat or IRC channel... really anything except for leaving rude comments on HN.
- fperez_org 13y agoFeel free to ask for help on our mailing list. We regularly test IPython with python 3.3, and one of our core developers is a python-3 person, so he's using it day in, day out. You most likely didn't run the installer correctly, and for some reason are trying to execute the python2 sources with python3.
- japhyr 13y agoIf anyone wants, I'm happy to post a more explicit recipe for how to get multiple versions of Python and IPython running. It's easy enough to post right here.
- stefap2 13y agoI would like to know. For Windows and Ubuntu. I was never able to properly ipython notebook under 3.3 either.
- japhyr 13y agoThis worked for me on Ubuntu 12.04: First, add a ppa that has old and new versions of Python, and use that to install Python3.3: sudo apt-get install python-software-properties sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python3.3 Now, install the correct versions of ipython, ipython-notebook, ipython3, and ipython3-notebook: sudo apt-get install ipython=0.13.2-1~ubuntu12.04.1 sudo apt-get install ipython-notebook=0.13.2-1~ubuntu12.04.1 sudo apt-get install ipython3=0.13.2-1~ubuntu12.04.1 sudo apt-get install ipython3-notebook Now, the command 'ipython notebook' should run your system's default version of Python. The command 'ipython3 notebook' should run Python3.3. I test the current version of Python with: print(3/2) If you're running Python 2, you'll see 1. If you're running Python 3, you'll see 1.5. Hope that helps, and happy to help troubleshoot if it doesn't. I'll add this to the readme on the project page [1] when I get the chance. [1] https://github.com/ehmatthes/intro_programming https://github.com/ehmatthes/intro_programming
- stefap2 13y agothanks. this worked for me.
- pdfcollect 13y agoDoes anyone know how to do this on windows? $ python -m IPython - first code line of github repo readme : https://github.com/ipython/ipython https://github.com/ipython/ipython - on python 3.3 gives me an error.
- windexh8er 13y agoI never use the default I interpreter on any system I want to maintain control and deployment consistency. I was using pythonbrew for a long time until I realized it was rotting on the vine. Now I use pyenv.