[IPython-dev] Custom completer creation now extra easy

Ville M. Vainio vivainio@gmail....
Wed Aug 22 13:47:32 CDT 2007


Sometimes you just need a trivial completer, e.g. to "document" an api
of a magic function.

I added ipy_completers.quick_completer, the usage of which is just:

        [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

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-dev mailing list