{ } Raw JSON

bundles / IPython 9.13.0 / IPython / core / events / EventManager / register

function

IPython.core.events:EventManager.register

source: /IPython/core/events.py :62

Signature

def   register ( self event : str function : Callable[..., Any] )  →  None

Summary

Register a new event callback.

Parameters

event : str

The event for which to register this callback.

function : callable

A function to be called on the given event. It should take the same parameters as the appropriate callback prototype.

Raises

: TypeError

If function is not callable.

: KeyError

If event is not one of the known events.

Aliases

  • IPython.core.events.EventManager.register

Referenced by