You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / interactiveshell / InteractiveShell / set_hook

function

IPython.core.interactiveshell:InteractiveShell.set_hook

source: /IPython/core/interactiveshell.py :1050

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