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

Brian Granger ellisonbg at gmail.com
Thu May 23 19:24:44 EDT 2013


Yes, that will be part of the work in the late summer/fall.

On Thu, May 23, 2013 at 4:23 PM, Thomas Kluyver <takowl at gmail.com> wrote:
> 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
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com



More information about the IPython-dev mailing list