Out not working with ipythonx

Bug #311490 reported by Thomas Kalka
4
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Undecided
Unassigned

Bug Description

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

Tags: ipythonx
Revision history for this message
Laurent Dufrechou (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.

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote : Re: [Bug 311490] Re: Out not working with ipythonx

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

Changed in ipython:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.