[IPython-dev] How can an extension inject HTML?

Thomas Kluyver takowl at gmail.com
Thu May 23 19:23:46 EDT 2013


On 24 May 2013 00:08, MinRK <benjaminrk at gmail.com> wrote:

> you can always inject javascript from any Python code by calling
> `display(Javascript("some_javascript();"))`.  It is often appropriate to
> make such a call as part of `%load_ext browsercast`, for example.
>
> But custom.js is the only way to add js that runs on all notebooks at load
> time without executing any code.
>

This is probably worth thinking more about, though - our existing extension
infrastructure only handles the kernel side, and we'll want something that
allows neatly contained extensions that modify the notebook UI as well. Is
that already on our agenda somewhere?

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


More information about the IPython-dev mailing list