environment/lib/python2.7/site-packages/IPython/core/interactiveshell.py
def init_completer(self):
        """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), programatically (such as in test suites) or out-of-prcess
        (typically over the network by remote frontends).
        """
        from IPython.core.completer import IPCompleter
        from IPython.core.completerlib import (module_completer,
                magic_run_completer, cd_completer, reset_completer)

        self.Completer = IPCompleter(shell=self,
                                     namespace=self.user_ns,
                                     global_namespace=self.user_global_ns,
                                     alias_table=self.alias_manager.alias_table,
                                     use_readline=self.has_readline,
                                     config=self.config,
                                     )
        self.configurables.append(self.Completer)

        # Add custom completers to the basic ones built into IPCompleter
        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', 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')

        # Only configure readline if we truly are using readline.  IPython can
        # do tab-completion over the network, in GUIs, etc, where readline
        # itself may be absent
        if self.has_readline:
            self.set_readline_completer()
def init_completer(self):
        """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), programatically (such as in test suites) or out-of-prcess
        (typically over the network by remote frontends).
        """
        from IPython.core.completer import IPCompleter
        from IPython.core.completerlib import (module_completer,
                magic_run_completer, cd_completer, reset_completer)

        self.Completer = IPCompleter(shell=self,
                                     namespace=self.user_ns,
                                     global_namespace=self.user_global_ns,
                                     alias_table=self.alias_manager.alias_table,
                                     use_readline=self.has_readline,
                                     config=self.config,
                                     )
        self.configurables.append(self.Completer)

        # Add custom completers to the basic ones built into IPCompleter
        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', 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')

        # Only configure readline if we truly are using readline.  IPython can
        # do tab-completion over the network, in GUIs, etc, where readline
        # itself may be absent
        if self.has_readline:
            self.set_readline_completer()
def init_completer ( self ) : from IPython . core . completer import IPCompleter from IPython . core . completerlib import ( module_completer , magic_run_completer , cd_completer , reset_completer ) self . Completer = IPCompleter ( shell = self , namespace = self . user_ns , global_namespace = self . user_global_ns , alias_table = self . alias_manager . alias_table , use_readline = self . has_readline , config = self . config , ) self . configurables . append ( self . Completer ) # Add custom completers to the basic ones built into IPCompleter 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' , 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' ) # Only configure readline if we truly are using readline.  IPython can # do tab-completion over the network, in GUIs, etc, where readline # itself may be absent if self . has_readline : self . set_readline_completer ( )
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), programatically (such as in test suites) or out-of-prcess
        (typically over the network by remote frontends).
Initialize the completion machinery .