[IPython-dev] Curses Frontend

Walter Dörwald walter@livinglogic...
Thu Mar 25 05:20:30 CDT 2010


On 24.03.10 18:15, Brian Granger wrote:

> Walter,
> 
> On Sun, Mar 21, 2010 at 1:09 PM, Walter Dörwald <walter@livinglogic.de> wrote:
>> On 12.03.10 23:09, Brian Granger wrote:
>>
>>> Walter,
>>>
>>>>> Is there a problem with generics?
>>>>
>>>> No, they work without a problem.
>>>
>>> Ok, I misunderstood.
>>>
>>>>> If so it might be related to this:
>>>>>
>>>>> https://bugs.launchpad.net/ipython/+bug/527968
>>>>
>>>> I'm not using generics.complete_object.
>>>>
>>>>> It this is a different issue, could you explain further?
>>>>
>>>> You wrote: "Minimally, ipipe needs to be updated to the new APIs", but
>>>> generics.result_display() is the only IPython API that ipipe uses, so I
>>>> thould I would have to change something.
>>>
>>> OK, but that shouldn't be too difficult right?  If you do want to
>>> continue to use this,
>>> we can look to see what the new API looks like for this.
>>
>> So does this mean that generics.result_display() *will* go away in 0.11?
>> If yes, what *is* the new API that I can hook into?
> 
> I think it is still there, and I doubt it would be removed for 0.11.
> But that part of the code base has not been refactored, so in the long
> run it may go away.

Understood. OK, so I'll stick to generics.result_display() for now.

>> What I need is a hook where I can register a callback which gets called
>> when objects of a certain type have to be output to the screen the
>> return value of the hook is the object that gets assigned to the _ variable.
> 
> For now I think this is what you want.

Servus,
   Walter


More information about the IPython-dev mailing list