[IPython-dev] Execute python code from the notebook dashboard
Matthias Bussonnier
bussonniermatthias at gmail.com
Fri May 9 03:36:53 EDT 2014
Le 8 mai 2014 à 15:32, Clyde Fare a écrit :
> Hi,
>
> Thanks for the suggestions. I can see that I can start a new kernel by posting to /api/kernels, but am a little lost at how to pass code to it using javascript. Is there a simple way to use services/kernels/js/kernel.js and hence kernel.execute? Or would I need to explicitly code up connecting to the kernel's ports and passing it the relevant messages as if I were writing a new kernel?
Kernel.js should be pretty standalone. Once you pass it the information to connect to a kernel you can just use kernel.execute() with call backs.
This should help :
https://github.com/minrk/singlecell
--
M
More information about the IPython-dev
mailing list