def set(self):
        if sys.displayhook is not self.hook:
            self.old_hook = sys.displayhook
            sys.displayhook = self.hook
Set the hook.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/display_trap.py/DisplayTrap.set