On Fri, Dec 6, 2013 at 6:10 AM, Fidel N <[email protected]> wrote:
> Hi: > > Reading from current Leo documentation of > IPython<http://leoeditor.com/IPythonBridge.html#running-leo-scripts-from-ipython> > : > > c,g = _leo.c, _leo.g > > This allows IPython scripts to do *anything* that a Leo script can do. > Scripts run from IPython *immediately* change Leo, *exactly* as if the > script were run from Leo. > > So, my aim is to easily send a variable to IPython and retrieve it from > Leo, being able to edit it quickly from both. > For this purpose, I run, in a Leo script: > > c.test="yes" #Now I can do g.es(c.test) and will output "yes" > > > Now, from IPython, I would expect to be able to do: > > _leo.c.test #and get "yes" as an output. > > > Also, I would want to modify the variable, and get it back in Leo: > > _leo.c.test="no" > > > Then in Leo: > > g.es(c.test) # showing "no" as result. > > > None of those works. Which is the way to do that? > I have no idea. Am I correct in assuming that _leo.c in IPython is a Commands object? Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
