[IPython-dev] wxPython console

Thomas Kluyver takowl at gmail.com
Thu Nov 3 07:05:52 EDT 2011

On 3 November 2011 10:31, Emmanuel Bacry <emmanuel.bacry at 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

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.


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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20111103/af1beb32/attachment.html>

More information about the IPython-dev mailing list