[IPython-dev] wxPython console

Thomas Kluyver takowl@gmail....
Thu Nov 3 06:05:52 CDT 2011


On 3 November 2011 10:31, Emmanuel Bacry <emmanuel.bacry@polytechnique.fr>wrote:

> Let's say I have a wx console widget ready, the wx main loop is running.
> Now I want to have a ipython shell object available, with stdin and stdout
> redirected,
> so that I can send to it input and get from it the output.
>

How does a Wx console widget work? I can't find a reference to it in the Wx
docs.

There is a protocol to run IPython in a separate process from the frontend.
This is what the Qt console uses. Requests and replies are packed into
JSON, and sent over ZMQ. There are message types for execution, tab
completion, history, etc.

http://ipython.org/ipython-doc/dev/development/messaging.html

If the console widget is a terminal emulator, a simple shortcut may be to
start plain ipython in that terminal.

At the moment, I don't think there's a good way to embed IPython in a GUI
without starting a separate process, but this is something we want to get
round to.

Best wishes,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20111103/af1beb32/attachment.html 


More information about the IPython-dev mailing list