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: strThe event for which to register this callback.
function: callableA function to be called on the given event. It should take the same parameters as the appropriate callback prototype.
Raises
: TypeErrorIf
functionis not callable.: KeyErrorIf
eventis not one of the known events.
Aliases
-
IPython.core.events.EventManager.register