[IPython-dev] Help! TR: TR: Ipython plugin

Laurent Dufréchou laurent.dufrechou@gmail....
Mon Jun 2 03:12:53 CDT 2008


Ho you saw this :)
It is solved now!
Here is the page for the plugin if anyone has some interest:

http://code.google.com/p/editra-plugins/wiki/IPythonShellPlugin

There still some problems with path interaction etc... that I try to solve
with editra developer cody precod.
The good point is that he is a macosx dev so he has solved some problem of
my code under macosx!

All is packed in a an egg thanks to the fact that ipython is only pure
python!

Chers,
Laurent

-----Message d'origine-----
De : Fernando Perez [mailto:fperez.net@gmail.com] 
Envoyé : lundi 2 juin 2008 08:20
À : Laurent Dufrechou
Cc : ipython-dev Mailing list
Objet : Re: [IPython-dev] Help! TR: TR: Ipython plugin

Hey Laurent,

sorry I'm only now digging from under the world :)

2008/3/29 Laurent Dufrechou <laurent.dufrechou@gmail.com>:
> Hi guys,
>
> I've submitted a pre-plugin for editra as an alternative to pyshell ;)
>
> All is working except some quirk with ctrl+c (editra interact with it) and
> enter under mac osx
.
>
> (I had never tried under mac osx.)
>
> So here are my two help request:
>
> -Can somebody tell if it exist a macosx emulator??? Or is there someone
> willing to help me debug this remotely? (else trying to correct the code
by
> itself with my help or perhaps via a vnc connection?)

I think people have hacked OSX into running under virtualization
environments, but it's not officially supported as best I know.

> Here is what cody saw:
>
> 2) The plugin loads and shows on Mac OSX but there must be some problem
with
> the key handling because hitting 'Enter' only inserts a new line in the
> control and doesn't execute the command. This problem doesn't exist when
> running under wxGTK.
>
>
>
> -Cody is asking if it is possible to embed Ipython in the plugin:
>
> It might also be interesting to try and embed IPython itself into the
plugin
> so nobody has to worry about dependencies. If IPython is pure python (not
a
> C extension) this should be as easy as copying the IPython directory into
> your plugins __init__.py path and then including it the setup.py's data
> files.
>
>
>
> Does Ipython as C dependency I'm not aware of???

No, IPython is pure python.  So yes, embedding it should be pretty
straightforward.  See this:

http://ipython.scipy.org/doc/manual/ipython.html#embedding-ipython

Cheers,

f



More information about the IPython-dev mailing list