[IPython-user] Leo plugin for IPython has landed

Ville M. Vainio vivainio@gmail....
Mon Feb 11 12:20:37 CST 2008

Lo and behold, ipy_leo.py had entered the IPython Extensions directory.

It's just a "first iteration", and it may be completely different soon
(including how it's used / what it does). Also, it does require a cvs
version of leo (to be released soon), so watch this space.

Do "import ipy_leo" in ipython session to get started (this should
probably be in the leo ipython plugin, coupled with 'except
ImportError' to work with older IPythons).

Now, there is a magic command %leo that takes a variable name as
argument. So, if you enter this in IPython:

[c:IPython/Extensions]|64> foo = ['hello leo %d' % i for i in range(3)]
[c:IPython/Extensions]|65> foo
                      <65> ['hello leo 0', 'hello leo 1', 'hello leo 2']
[c:IPython/Extensions]|66> leo foo

This will create a node with headline '@ipy-var foo', with contents

hello leo 0
hello leo 1
hello leo 2

It's very easy to add support for different variable types (through


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

More information about the IPython-user mailing list