##// END OF EJS Templates
callbacks -> events in docs
Thomas Kluyver -
Show More
@@ -7,7 +7,7 b' events within the IPython code. You can see the current list of available'
7 7 callbacks, and the parameters that will be passed with each, in the callback
8 8 prototype functions defined in :mod:`IPython.core.callbacks`.
9 9
10 To register callbacks, use :meth:`IPython.core.callbacks.CallbackManager.register`.
10 To register callbacks, use :meth:`IPython.core.events.EventManager.register`.
11 11 For example::
12 12
13 13 class VarWatcher(object):
@@ -24,8 +24,8 b' For example::'
24 24
25 25 def load_ipython_extension(ip):
26 26 vw = VarWatcher(ip)
27 ip.callbacks.register('pre_execute', vw.pre_execute)
28 ip.callbacks.register('post_execute', vw.post_execute)
27 ip.events.register('pre_execute', vw.pre_execute)
28 ip.events.register('post_execute', vw.post_execute)
29 29
30 30 .. note::
31 31
General Comments 0
You need to be logged in to leave comments. Login now