Hi,

I have been using leo for some years now (thanks for your good work,
by the way), and I have only recently started to look into the ipython
bridge. I like it a lot, but there seems to be a couple of gottchas.

The main thing that bothers me is that it seems not possible to use
ipython in pylab mode (at least with qtGui). Adding "@string
ipython_argv=ipython -pylab" to the settings does nothing.

I looked into qtGui.py and noticed that the line for taking into
account  ipython_argv was commented out:
        #args = c.config.getString('ipython_argv')
        args = None
        if args is None:
            argv = ['leo.py', '-p', 'sh']
        sys.argv = argv
        ses = IPython.ipapi.make_session()

I tried to hard-code the pylab mode by replacing argv = ['leo.py', '-
p', 'sh']    with argv = ['leo.py',,'-pylab','-p', 'sh'] , but it only
partially worked: the pylab namespace is indeed imported, but using
the plot command does not display anything.

Is this a known bug with the qt plugin? (which would explain why the
line for using ipython_argv is commented out in qtGui.py).  In that
case, I would suggest to at least mention it in the docs where the
examples about using the pylab mode are provided. And I hope it will
get fixed soon (pylab+ipython+leo seems an promising combination
indeed).

I tried to launch leo in Tk-mode to check if the bug was only related
to qtGui, but I realized I had no idea on how to do that. If it is not
in the doc (it might be: i didn't do an extensive search), it would be
worth mentioning.

Also, I am not sure weather it is a bug or a feature, but i noticed
that, when i use, for example, the command  wb.foo.v="bar", the node
"foo" is created, in the outline, as a child of  the currently
selected node. I would have expected wb.foo to create always a top-
level node, and wb.toto.foo to create, for example, the node "foo" as
a child of the node "toto".

Sincerely,
Fab





-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to