Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
Implementations for various useful completers.
These are all loaded by default by IPython.
Return the list containing the names of the modules available in the given folder.
Returns a list containing the names of all the modules available in the folders of the pythonpath.
ip.db[‘rootmodules_cache’] maps sys.path entries to list of modules.
Easily create a trivial completer for a command.
Takes either a list of completions, or all completions in string (that will be split on whitespace).
Example:
[d:\ipython]|1> import ipy_completers
[d:\ipython]|2> ipy_completers.quick_completer('foo', ['bar','baz'])
[d:\ipython]|3> foo b<TAB>
bar baz
[d:\ipython]|3> foo ba
Returns a list containing the completion possibilities for an import line.
The line looks like this : ‘import xml.d’ ‘from xml.dom import’
Give completions after user has typed ‘import ...’ or ‘from ...’
Complete files that end in .py or .ipy or .ipynb for the %run command.
Completer function for cd, which only returns directories.
A completer for %reset magic