[IPython-dev] inject JS via magics?

MinRK benjaminrk at gmail.com
Tue May 14 20:17:58 EDT 2013


Yes, that's fine. Just do:

from IPython.display import display, Javascript

display(Javascript("some_js();"))


On Tue, May 14, 2013 at 5:12 PM, Francis Reyes <fereyes at lbl.gov> wrote:

> For ipython notebook, I'm having some fun with making my own magics.
>
> Is it possible to inject javascript code into the current notebook session
> via magics?
>
> Is there a Right Way ?
>
> Thanks,
>
> F
>
>
>
> Francis Reyes
> Advanced Light Source
> 1 Cyclotron Road
> Berkeley, CA 94720
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130514/3a972e3a/attachment.html>


More information about the IPython-dev mailing list