bundles / IPython 9.17.0 / IPython / core / interactiveshell / InteractiveShell / set_hook
function
IPython.core.interactiveshell:InteractiveShell.set_hook
Signature
def set_hook(self, name, hook, priority = 50, str_key = None, re_key = None)Summary
set_hook(name,hook) -> sets an internal IPython hook.
Extended Summary
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.
Aliases
IPython.InteractiveShell.set_hook