News for hackers. Stuff that matters.
Re:How IPython Notebook and Github have changed the way I te... by infocollector on Tuesday September 24, 2013 @11:19AM (#6438439)
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

Re:How IPython Notebook and Github have changed the way I te... by japhyr on Tuesday September 24, 2013 @11:24AM (#6438477)
What 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?

Re:How IPython Notebook and Github have changed the way I te... by fperez_org on Tuesday September 24, 2013 @02:18PM (#6439706)
Feel 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.

Re:How IPython Notebook and Github have changed the way I te... by ngoldbaum on Tuesday September 24, 2013 @01:18PM (#6439270)
You 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.
Re:How IPython Notebook and Github have changed the way I te... by akiselev on Tuesday September 24, 2013 @11:26AM (#6438489)
Print in Python 3.3 uses parentheses (it's a function now) which might mean you have the wrong version installed.
Re:How IPython Notebook and Github have changed the way I te... by japhyr on Tuesday September 24, 2013 @02:19PM (#6439715)
If 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.
Re:How IPython Notebook and Github have changed the way I te... by stefap2 on Tuesday September 24, 2013 @02:36PM (#6439829)
I would like to know. For Windows and Ubuntu. I was never able to properly ipython notebook under 3.3 either.
Re:How IPython Notebook and Github have changed the way I te... by japhyr on Tuesday September 24, 2013 @08:04PM (#6441733)
This 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

Re:How IPython Notebook and Github have changed the way I te... by stefap2 on Tuesday September 24, 2013 @09:47PM (#6442163)
thanks. this worked for me.
Re:How IPython Notebook and Github have changed the way I te... by pdfcollect on Tuesday September 24, 2013 @09:54PM (#6442190)
Does anyone know how to do this on windows? $ python -m IPython - first code line of github repo readme : https://github.com/ipython/ipython - on python 3.3 gives me an error.
Re:How IPython Notebook and Github have changed the way I te... by takluyver on Friday September 27, 2013 @01:17PM (#6458130)
For the time being, that bit of the README is misleading - you need to install IPython, because it relies on 2to3 running during setup.py. That will be fixed (by me!) for our next major release, due this winter.
Re:How IPython Notebook and Github have changed the way I te... by zokier on Tuesday September 24, 2013 @12:29PM (#6438889)
As 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)
Re:How IPython Notebook and Github have changed the way I te... by herge on Tuesday September 24, 2013 @11:55AM (#6438660)
Most distributions use two binaries: ipython (for python 2.x) and ipython3 specifically for python 3, unfortunately.
Re:How IPython Notebook and Github have changed the way I te... by windexh8er on Tuesday September 24, 2013 @03:14PM (#6440064)
I 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.