def init_hooks(self):
    self.hooks = Struct()
    self.strdispatchers = {}
    hooks = IPython.core.hooks
    for hook_name in hooks.__all__:
        self.set_hook(hook_name, getattr(hooks, hook_name), 100)
    if self.display_page:
        self.set_hook('show_in_pager', page.as_hook(page.display_page), 90)
def init_hooks(self):
    self.hooks = Struct()
    self.strdispatchers = {}
    hooks = IPython.core.hooks
    for hook_name in hooks.__all__:
        self.set_hook(hook_name, getattr(hooks, hook_name), 100)
    if self.display_page:
        self.set_hook('show_in_pager', page.as_hook(page.display_page), 90)