[IPython-dev] embedding ipython kernel

Piotr Zolnierczuk piotr.zolnierczuk at gmail.com
Wed Jul 13 18:15:37 EDT 2011


Thomas - thank for reply.

I have other modules that handle hardware communications I would not (at
least initially) rewrite everything using ZeroMQ - although it sounds very
appealing.

So my thinking at the moment is to embed ipython kernel in "my app" so that
I can write and execute experiment control scripts from a ipython console
kind of like this:

hardware <-- custom comm. --> [ my_interface_module, ipython_kernel]  <--
ZMQ --> ipython_console


But I am open to any suggestions.

Piotr

On Wed, Jul 13, 2011 at 5:11 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 13 July 2011 22:00, Piotr Zolnierczuk <piotr.zolnierczuk at gmail.com>wrote:
>
>> Another followup from Fernando's talk @scipy2011: how hard would it be to
>> embed ipython kernel in some other app?
>>
>> My use case is hardware (experiment) control with embedded kernel that I
>> would like to access from various clients.
>>
>
> I don't know quite what Fernando said, but the kernel talks ZeroMQ (
> http://www.zeromq.org/), so a frontend can be written for it in any
> language that has ZeroMQ bindings. The kernel itself needs to run on a
> platform with a Python 2.6 or 2.7 interpreter. If you're using it to control
> a device with an embedded computer, you'd probably need to have the kernel
> on another machine communicating with that. The kernel can be left running,
> and you can connect and disconnect clients at liberty.
>
> Hope that helps,
> Thomas
>



-- 

Piotr Adam Zolnierczuk
e-mail: piotr at zolnierczuk.net
www:   http://www.zolnierczuk.net
_____________________________________
written on recycled electrons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110713/987441fd/attachment.html>


More information about the IPython-dev mailing list