Inheritance diagram for IPython.kernel.core.display_trap:
Manager for replacing sys.displayhook().
Object to trap and format objects passing through sys.displayhook().
This trap maintains two lists of callables: formatters and callbacks. The formatters take the last object that has gone through since the trap was set and returns a string representation. Callbacks are executed on every object that passes through the displayhook and does not return anything.
Add the formatted display of the objects to the message dictionary being returned from the interpreter to its listeners.
Reset the stored object.
This method actually implements the hook.
Set the hook.
Unset the hook.