#1526 incorrect ipython output number in PyDev console

open
nobody
None
5
2012-08-25
2012-08-25
Minjae
No

Ubuntu 12.04 (server)
Eclipse Juno (4.2)
PyDev 2.6.0
Ipython 0.13

I am using ipython as the backend of PyDev's interactive console after PyDev automatically detected an installation of ipython using "Auto Config" as explained in http://pydev.org/manual_101_interpreter.html .

One immediate problem I found is that output numbering ("Out" below) is never incremented from 1. See below for the actual detail.

>>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
/usr/bin/python2.7 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3]
PyDev console: using IPython 0.11
>>>
>>> execfile('/home/m/workspace/testpython/main.py')
>>> "hello"
Out[1]: 'hello'
>>> "hi"
Out[1]: 'hi'
>>> "bye"
Out[1]: 'bye'
>>>

The numbering is supposed to be incremented each time, and this is the behavior of the terminal ipython. (Also, PyDev is reporting my ipython to be 0.11, a problem that I never found a solution to.) I will be happy to furnish further details.

Discussion

  • Minjae
    Minjae
    2012-08-25

    This is the actual (correct) behavior of ipython running from terminal

    :~$ ipython
    Python 2.7.3 (default, Aug 1 2012, 05:14:39)
    Type "copyright", "credits" or "license" for more information.

    IPython 0.13 -- An enhanced Interactive Python.
    ? -> Introduction and overview of IPython's features.
    %quickref -> Quick reference.
    help -> Python's own help system.
    object? -> Details about 'object', use 'object??' for extra details.

    In [1]: "hello"
    Out[1]: 'hello'

    In [2]: "hi"
    Out[2]: 'hi'

    In [3]: "bye"
    Out[3]: 'bye'

    The "Out" buffer increases in numbering as we expect. Also, "In" buffer is clearly marked as well.