def init_displayhook(self):
    self.displayhook = self.displayhook_class(parent=self, shell=self, cache_size=self.cache_size)
    self.configurables.append(self.displayhook)
    self.display_trap = DisplayTrap(hook=self.displayhook)
def init_displayhook(self):
    self.displayhook = self.displayhook_class(parent=self, shell=self, cache_size=self.cache_size)
    self.configurables.append(self.displayhook)
    self.display_trap = DisplayTrap(hook=self.displayhook)