[IPython-dev] Displayhook configuration (Walter take heed!)

Ville Vainio vivainio at gmail.com
Sat Jan 14 07:26:21 CST 2006


On 1/14/06, Ville Vainio <vivainio at gmail.com> wrote:

> Nevermind, I'll implement it myself (I thought we should do this via
> "normal" hook mechanism and I'm converting the hooks to
> chain-of-command list using an optional priority).

Implemented in svn.

Use as expected -

import IPython.ipapi as ip

def f(self,arg): ...

ip.set_hook("result_display",f)

Raise IPython.hooks.TryNext if you want to pass the result on to next
hook handler.

(Yes, I figure TryNext could be in another place as well)

--
Ville Vainio    http://tinyurl.com/2prnb
  Can't you see the world is burning
  Can't you feel its Fire burning
  Don't you know we all are burning
  The Fire of Life       -- R.N.Taylor / Changes




More information about the IPython-dev mailing list