def __init__(self, ipython_dir=None, profile_dir=None, user_module=None, user_ns=None, custom_exceptions=((), None), **kwargs):
    super(InteractiveShell, self).__init__(**kwargs)
    if ('PromptManager' in self.config):
        warn('As of IPython 5.0 `PromptManager` config will have no effect and has been replaced by TerminalInteractiveShell.prompts_class')
    self.configurables = [self]
    self.init_ipython_dir(ipython_dir)
    self.init_profile_dir(profile_dir)
    self.init_instance_attrs()
    self.init_environment()
    self.init_virtualenv()
    self.init_create_namespaces(user_module, user_ns)
    self.save_sys_module_state()
    self.init_sys_modules()
    self.db = PickleShareDB(os.path.join(self.profile_dir.location, 'db'))
    self.init_history()
    self.init_encoding()
    self.init_prefilter()
    self.init_syntax_highlighting()
    self.init_hooks()
    self.init_events()
    self.init_pushd_popd_magic()
    self.init_user_ns()
    self.init_logger()
    self.init_builtins()
    self.init_inspector()
    self.raw_input_original = input
    self.init_completer()
    self.init_io()
    self.init_traceback_handlers(custom_exceptions)
    self.init_prompts()
    self.init_display_formatter()
    self.init_display_pub()
    self.init_data_pub()
    self.init_displayhook()
    self.init_magics()
    self.init_alias()
    self.init_logstart()
    self.init_pdb()
    self.init_extension_manager()
    self.init_payload()
    self.events.trigger('shell_initialized', self)
    atexit.register(self.atexit_operations)
    self.trio_runner = None
def __init__(self, ipython_dir=None, profile_dir=None, user_module=None, user_ns=None, custom_exceptions=((), None), **kwargs):
    super(InteractiveShell, self).__init__(**kwargs)
    if ('PromptManager' in self.config):
        warn('As of IPython 5.0 `PromptManager` config will have no effect and has been replaced by TerminalInteractiveShell.prompts_class')
    self.configurables = [self]
    self.init_ipython_dir(ipython_dir)
    self.init_profile_dir(profile_dir)
    self.init_instance_attrs()
    self.init_environment()
    self.init_virtualenv()
    self.init_create_namespaces(user_module, user_ns)
    self.save_sys_module_state()
    self.init_sys_modules()
    self.db = PickleShareDB(os.path.join(self.profile_dir.location, 'db'))
    self.init_history()
    self.init_encoding()
    self.init_prefilter()
    self.init_syntax_highlighting()
    self.init_hooks()
    self.init_events()
    self.init_pushd_popd_magic()
    self.init_user_ns()
    self.init_logger()
    self.init_builtins()
    self.init_inspector()
    self.raw_input_original = input
    self.init_completer()
    self.init_io()
    self.init_traceback_handlers(custom_exceptions)
    self.init_prompts()
    self.init_display_formatter()
    self.init_display_pub()
    self.init_data_pub()
    self.init_displayhook()
    self.init_magics()
    self.init_alias()
    self.init_logstart()
    self.init_pdb()
    self.init_extension_manager()
    self.init_payload()
    self.events.trigger('shell_initialized', self)
    atexit.register(self.atexit_operations)
    self.trio_runner = None