[IPython-dev] Simple Kernel Example

Doug Blank doug.blank at gmail.com
Sun Jan 19 10:49:31 EST 2014


I believe that the simple_kernel.py is close to working, but I unable
to get it to report a result back to the frontend so far. I believe
that I have everything in place (signatures, serialized components,
sockets, etc.) but I had to deviate from the IPython sources somewhat
(for example, using bind rather than connect) so I might have
mistakes.

https://github.com/dsblank/simple_kernel/blob/master/simple_kernel.py

I'd very much appreciate any suggestions, especially if you are able
to provide specific changes, or even patches. I'm stuck on what could
be the matter, and have tried pretty much everything I can think of.

Thanks!

-Doug

On Sat, Jan 18, 2014 at 8:58 AM, Doug Blank <doug.blank at gmail.com> wrote:
> Thanks to the many pointers, I have the start of a simple_kernel.py:
>
> https://github.com/dsblank/simple_kernel
>
> It doesn't actually work yet. My goal is to develop a simple example
> that people would find useful to translate into other languages. So,
> trying not to use too many Python-specific options.
>
> If you see something that I'm doing wrong, or have suggestions to make
> it a better example, please let me know, or fork it and fix.
>
> Thanks!
>
> -Doug
>
> On Thu, Jan 16, 2014 at 5:18 PM, Doug Blank <doug.blank at gmail.com> wrote:
>> Hello devs,
>>
>> I've looked at the IPython docs, and IHaskell, IJulia, and IRuby backends,
>> but having a bit of trouble seeing exactly what needs to be done to create a
>> new kernel. I assume that a kernel could be an executable in any language
>> that receives a filename whose contents are the configuration items (like
>> port numbers). Then, I guess, it starts up threads to listen to those ports
>> handling XMP data.
>>
>> If there were a simple HelloWorld-type kernel, that would be very helpful.
>> For example, just a hello.py file that listened to the right ports, and
>> returned an effective response of "Ok" (without doing anything) would be
>> enough to get me started.
>>
>> Is there anything similar to that?
>>
>> Thanks for any help or pointers!
>>
>> -Doug
>>
>>
>>
>>
>> --
>> View this message in context: http://python.6.x6.nabble.com/Simple-Kernel-Example-tp5044217.html
>> Sent from the IPython - Development mailing list archive at Nabble.com.
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev



More information about the IPython-dev mailing list