[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


Hi:

In IPython I can do the following:

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

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)

2


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?

Alejandro.


More information about the IPython-User mailing list