Out not working with ipythonx #51

Closed
ipython opened this Issue May 10, 2010 · 3 comments

Projects

None yet

2 participants

@ipython
ipython commented May 10, 2010

Original Launchpad bug 311490: https://bugs.launchpad.net/ipython/+bug/311490
Reported by: thomas-kalka-googlemail (Thomas Kalka).

I am using ipython 0.9.1, installed by easy_install under ubuntu 8.10

after invoking ipythonx

the Out-dict is always empty:

Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
Type "copyright", "credits" or "license" for more information.

IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

This is the wx frontend, by Gael Varoquaux. This is EXPERIMENTAL code.
In [1]: 1+2
Out[1]: 3

In [2]: Out?

Type: dict
Base Class: <type 'dict'>
String Form: {}
Namespace: Interactive
Length: 0

@ipython
ipython commented May 10, 2010

[ LP comment 1 by: Laurent Dufrechou, on 2009-02-11 23:29:00.468243+00:00 ]

Hi gael, just to keep a trace:

I've got same problem with ipython-wx.

Digged a little:
iplib.py:369: self.output_hist = {}
iplib.py:389: self.user_ns['_oh'] = self.output_hist
iplib.py:394: self.user_ns['Out'] = self.output_hist

Right now, can't find from my quick dig where self.output_hist is refreshed :/
Will try to find, think we've got the same issue there.

@ipython
ipython commented May 10, 2010

[ LP comment 2 by: Gael Varoquaux, on 2009-02-11 23:37:47+00:00 ]

On Wed, Feb 11, 2009 at 11:29:00PM -0000, Laurent Dufrechou wrote:

Hi gael, just to keep a trace:

I've got same problem with ipython-wx.

Digged a little:
iplib.py:369: self.output_hist = {}
iplib.py:389: self.user_ns['_oh'] = self.output_hist
iplib.py:394: self.user_ns['Out'] = self.output_hist

Right now, can't find from my quick dig where self.output_hist is refreshed :/
Will try to find, think we've got the same issue there.

AFAIK, the output_hist is refreshed in the display hook. There is nothing
we can do to fix this without refactoring ipython. I am saying this from
emory, though, so I could be wrong.

Gaël

@takluyver
Member

This isn't an issue in the new frontends framework in 0.11, and no-one's likely to rewrite the old code at this point. Closing.

@takluyver takluyver closed this Mar 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment