On Mar 30, 10:34 am, "Ville M. Vainio" <[EMAIL PROTECTED]> wrote:

> 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).

I'm having trouble with this because I don't know where leo.py is :-)
What directory do I have to be in for this to work?

Also, I'd like to use ipython for all my Python work, but I'm not sure
whether what I am doing makes sense.  Formerly, in the XP Folder
options control panel, I invoked .leo files this way:

c:\python25\python.exe -i c:\leo.repo\leo-editor\trunk\leo\src\leo.py
"%1"

Now I do:

c:\python25\python.exe C:\Python25\scripts\ipython c:\leo.repo\leo-
editor\trunk\leo\src\leo.py "%1"

This works, kind of.  The .leo file starts up, but I get the *python*
version number in Leo's log.  When I quit Leo, I do indeed drop into
IPython. Is this how you set things up, Ville?

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