def init_completer(self):
    'Initialize the completion machinery.\n\n        This creates completion machinery that can be used by client code,\n        either interactively in-process (typically triggered by the readline\n        library), programmatically (such as in test suites) or out-of-process\n        (typically over the network by remote frontends).\n        '
    from IPython.core.completer import IPCompleter
    from IPython.core.completerlib import cd_completer, magic_run_completer, module_completer, reset_completer
    self.Completer = IPCompleter(shell=self, namespace=self.user_ns, global_namespace=self.user_global_ns, parent=self)
    self.configurables.append(self.Completer)
    sdisp = self.strdispatchers.get('complete_command', StrDispatch())
    self.strdispatchers['complete_command'] = sdisp
    self.Completer.custom_completers = sdisp
    self.set_hook('complete_command', module_completer, str_key='import')
    self.set_hook('complete_command', module_completer, str_key='from')
    self.set_hook('complete_command', module_completer, str_key='%aimport')
    self.set_hook('complete_command', magic_run_completer, str_key='%run')
    self.set_hook('complete_command', cd_completer, str_key='%cd')
    self.set_hook('complete_command', reset_completer, str_key='%reset')
Initialize the completion machinery.

This creates completion machinery that can be used by client code,
either interactively in-process (typically triggered by the readline
library), programmatically (such as in test suites) or out-of-process
(typically over the network by remote frontends).
def init_completer(self):
    'Initialize the completion machinery.\n\n        This creates completion machinery that can be used by client code,\n        either interactively in-process (typically triggered by the readline\n        library), programmatically (such as in test suites) or out-of-process\n        (typically over the network by remote frontends).\n        '
    from IPython.core.completer import IPCompleter
    from IPython.core.completerlib import cd_completer, magic_run_completer, module_completer, reset_completer
    self.Completer = IPCompleter(shell=self, namespace=self.user_ns, global_namespace=self.user_global_ns, parent=self)
    self.configurables.append(self.Completer)
    sdisp = self.strdispatchers.get('complete_command', StrDispatch())
    self.strdispatchers['complete_command'] = sdisp
    self.Completer.custom_completers = sdisp
    self.set_hook('complete_command', module_completer, str_key='import')
    self.set_hook('complete_command', module_completer, str_key='from')
    self.set_hook('complete_command', module_completer, str_key='%aimport')
    self.set_hook('complete_command', magic_run_completer, str_key='%run')
    self.set_hook('complete_command', cd_completer, str_key='%cd')
    self.set_hook('complete_command', reset_completer, str_key='%reset')