Inheritance diagram for IPython.kernel.core.display_trap:
Manager for replacing sys.displayhook().
Bases: object
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.