TenjintShell.set_hook(name, hook) → sets an internal IPython hook.¶
IPython exposes some of its internal API as user-modifiable hooks. By
adding your function to one of these hooks, you can modify IPython’s
behavior to call at runtime your own routines.