[IPython-User] html notebook js-python interaction
Matthias BUSSONNIER
bussonniermatthias@gmail....
Thu Sep 20 09:17:08 CDT 2012
Le 20 sept. 2012 à 15:53, Vincent Schut a écrit :
> Hi,
>
> 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
> javascript console sais 'TypeError: kernel is null'.
> I also tried with current 0.14, gives the same (output: Error rendering
> Markdown! TypeError: kernel is null)
Hi Vincent,
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™
Have fun.
--
Matthias
>
>
> 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?
>
>
> Best,
> Vincent.
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
More information about the IPython-User
mailing list