<div class="gmail_quote">On 23 August 2011 15:37, Fabio Zadrozny <span dir="ltr"><<a href="mailto:fabiofz@gmail.com">fabiofz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":15v">The gui is all handled in the PyDev side -- i.e.: history, user input,<br>
etc. -- so, it's probably not very reusable, but the backend uses<br>
IPython as an interactive interpreter, with the communication all done<br>
through xml-rpc, so, it should be straightforward to reuse that code<br>
elsewhere (license is EPL).</div></blockquote></div><br>We've actually implemented a system for doing this sort of thing, using messages sent over ZMQ. That's what powers the Qt console in 0.11, and is behind the HTML notebook which will be released with 0.12. (Message spec is here: <a href="http://ipython.org/ipython-doc/dev/development/messaging.html">http://ipython.org/ipython-doc/dev/development/messaging.html</a> ).<br>
<br>As for starting with pylab support, it should be possible to use a config object and pass it to TerminalInteractiveShell.instance(), but I don't know exactly whether it will work in it's present form, because pylab is an option at the application level, whereas you're initialising at the shell level. Using the ZMQ API, it certainly should be possible to start a kernel in pylab mode.<br>
<br>Thanks,<br>Thomas<br>