[IPython-User] IPython qtconsole does not like statements separated by a semicolon

Alejandro Weinstein alejandro.weinstein@gmail....
Wed Nov 7 17:36:38 CST 2012


In IPython I can do the following:

In [1]: a = range(10); print len(a)

However, doing the same in the qtconsole I get

In [1]: a = range(a); print len(a)



NameError Traceback (most recent call last)

<ipython-input-1-8df4a6013a5f> in <module>()

----> 1 a = range(a); print len(a)


NameError: name 'a' is not defined

The first time I press enter, I get the continuation prompt '...:'.
The second time I get the error.

Any reason for this not working in the qtconsole?


More information about the IPython-User mailing list