{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / events / EventManager / __init__

function

IPython.core.events:EventManager.__init__

source: /dev/ipython/IPython/core/events.py:40

Signature

def __init__(self, shell: InteractiveShell, available_events: Iterable[str], print_on_error: bool = True) → None

Summary

Initialise the CallbackManager.

Parameters

shell

The InteractiveShell instance

available_events

An iterable of names for callback events.

print_on_error:

A boolean flag to set whether the EventManager will print a warning which a event errors.

Aliases

  • IPython.core.events.EventManager.__init__