[IPython-dev] kernel wrapper example

Matthias Bussonnier bussonniermatthias at gmail.com
Mon Jul 21 10:22:32 EDT 2014


Hi Ralf, 

Thanks a lot for your questions.

Le 21 juil. 2014 à 14:02, Ralf Hemmecke a écrit :

> Hello,
> 
> The site
> 
> http://ipython.org/ipython-doc/dev/development/wrapperkernels.html
> 
> makes a little echokernel.py example. But how exactly am I supposed to
> run this?


This is extremely recent on IPython, so the documentation is a little short. 


> I don't understand what I should do with the following part.
> 
> =======================
> Here’s the Kernel spec kernel.json file for this:
> 
> {"argv":["python","-m","echokernel", "-f", "{connection_file}"],
> "display_name":"Echo",
> "language":"no-op"
> }
> =======================
> 
> My questions:
> 
> 1) Into which directory should I put echokernel.py?
> 2) where should I put this kernel.json snippet?
> 3) I'd expect that then (when I simply call "ipython") it would
>   automatically use "echokernel.py". Is this true?
> 
> I'm probably not done with this, since the echokernel example is
> probably too simple as a real-world-example. I'd really appreciate an
> example that demonstrates the connection to bash as an example.
> Any chance that someone would write a tutorial for how to do this with
> the new kernelwrapper mechanism? I wonder how the bash process would
> actually be started and kept alive.
> 


I know there is an example of bash kernel that uses this process here :

https://github.com/takluyver/bash_kernel


We will try to expand the docs to at least link to the example. 
You can also help us by contributing docs about the process, in particular on this file : 

https://github.com/ipython/ipython/blob/master/docs/source/development/wrapperkernels.rst

Thanks a lot !

-- 
Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140721/7de962fc/attachment.html>


More information about the IPython-dev mailing list