[IPython-dev] Back-End implementation of IPython Widget

Thomas Kluyver takowl at gmail.com
Wed Nov 19 12:47:01 EST 2014


On 19 November 2014 01:53, Lucien Boillod <lucienboillod at gmail.com> wrote:

> But my question was really on the execution of the javascript part, as far
> as I can see in both of your examples the same method as me is used,
> because %%javascript is just a alias for the rich display feature
> display(Javascript(js))
>

I think you're asking about how to get the JS part of the widget onto the
page. Have a look at what I do with the turtle widget in mobilechelonian -
when you instantiate it, it copies the JS into nbextensions, and the widget
specifies _view_module to tell the frontend where to load its JS component
from.

https://github.com/takluyver/mobilechelonian

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141119/1765c506/attachment.html>


More information about the IPython-dev mailing list