def module_completer(self,event):

    # This works in all versions of python.  While 2.5 has
    # pkgutil.walk_packages(), that particular routine is fairly dangerous,
    # since it imports *EVERYTHING* on sys.path.  That is: a) very slow b) full
    # of possibly problematic side effects.
    # This search the folders in the sys.path for available modules.

    return module_completion(event.line)

# FIXME: there's a lot of logic common to the run, cd and builtin file
# completers, that is currently reimplemented in each.
Give completions after user has typed 'import ...' or 'from ...'
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/completerlib.py/module_completer