def init_user_ns(self):
    'Initialize all user-visible namespaces to their minimum defaults.\n\n        Certain history lists are also initialized here, as they effectively\n        act as user namespaces.\n\n        Notes\n        -----\n        All data structures here are only filled in, they are NOT reset by this\n        method.  If they were not empty before, data will simply be added to\n        them.\n        '
    ns = {}
    ns['_ih'] = self.history_manager.input_hist_parsed
    ns['_oh'] = self.history_manager.output_hist
    ns['_dh'] = self.history_manager.dir_hist
    ns['In'] = self.history_manager.input_hist_parsed
    ns['Out'] = self.history_manager.output_hist
    ns['get_ipython'] = self.get_ipython
    ns['exit'] = self.exiter
    ns['quit'] = self.exiter
    self.user_ns_hidden.update(ns)
    self.user_ns.update(ns)
Initialize all user-visible namespaces to their minimum defaults.

Certain history lists are also initialized here, as they effectively
act as user namespaces.

Notes
-----
All data structures here are only filled in, they are NOT reset by this
method.  If they were not empty before, data will simply be added to
them.
def init_user_ns(self):
    'Initialize all user-visible namespaces to their minimum defaults.\n\n        Certain history lists are also initialized here, as they effectively\n        act as user namespaces.\n\n        Notes\n        -----\n        All data structures here are only filled in, they are NOT reset by this\n        method.  If they were not empty before, data will simply be added to\n        them.\n        '
    ns = {}
    ns['_ih'] = self.history_manager.input_hist_parsed
    ns['_oh'] = self.history_manager.output_hist
    ns['_dh'] = self.history_manager.dir_hist
    ns['In'] = self.history_manager.input_hist_parsed
    ns['Out'] = self.history_manager.output_hist
    ns['get_ipython'] = self.get_ipython
    ns['exit'] = self.exiter
    ns['quit'] = self.exiter
    self.user_ns_hidden.update(ns)
    self.user_ns.update(ns)