[IPython-User] html notebook js-python interaction
Thu Sep 20 09:17:08 CDT 2012
Le 20 sept. 2012 à 15:53, Vincent Schut a écrit :
> I'm trying to get js-python interaction in the html notebook working
> (read: kernel.execute(pyfunc, callbacks), callbacks alter the current
> notebook output).
> I found this gist: https://gist.github.com/2605662 that should basically
> do what I want, however, I cannot get it to work. If I load it (firefox
> 15.0.1, ipython 0.13), I get no plot, the sliders are locked, and the
> I also tried with current 0.14, gives the same (output: Error rendering
> Markdown! TypeError: kernel is null)
You need to re-execute **every** cell, meaning editing each markdown cell that contain JS (even without making a change)
And run them again.
On 0.14 it Works™
> Background: I would like to have my objects dynamically create and alter
> a html/js gui by using js <-> python interaction (I'm quite excited that
> this should be possible!)
> Could anyone give me a hint on how to get this flot notebook running, or
> give me a basic example of changing the cell output as result from a
> kernel.execute call?
> IPython-User mailing list
More information about the IPython-User