On Sun, Mar 30, 2008 at 3:57 PM, Ville M. Vainio <[EMAIL PROTECTED]> wrote:

> It seems embedding leo to ipython is a trivial task - you just %run
>  leo.py. Then, in leo ipython plugin, you can get the handle by

Well, it seems it was not as trivial as I figured, from users point of view.

You currently need to do the following to embed leo in existing ipython session:

import IPython.Shell
IPython.Shell.hijack_tk()
%run leo.py  (in leo/leo/src)

When leo is installable as a package, this will be much simpler
(because we don't need to know where leo.py is). We can just do magic
command %leo that hijacks tk, launches leo, and possibly also does
launch-ipython inside the leo session (that should be possible,
right?).

The implementation of the support for this was trivial:

http://bazaar.launchpad.net/~leo-editor-team/leo-editor/trunk/revision/240

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

--~--~---------~--~----~------------~-------~--~----~
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