[IPython-dev] Interactive SVG is not interactive in a notebook

Benjamin Root ben.root@ou....
Mon Jun 3 08:31:09 CDT 2013


On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER <
bussonniermatthias@gmail.com> wrote:

> Hi ben,
> Le 3 juin 2013 à 00:43, Benjamin Root a écrit :
>
> > Digging further, I see that the xml data is making it to the browser,
> but the javascript embedded within the svg file is completely stripped out.
>  Is that on purpose?  Is there a way I can override that behavior?
>
> No we don't strip js out of XML by intent (yet). Have you try to use HTML
> that itself contain a script tag, and an svg  tag with an ID so that you
> can refer to it ?
>

Well, something is stripping it out, between the call to
IPython.display.SVG() and what Firefox tells me it sees.  Since I need this
to work for the tutorial, I am just going to have to assume that this is a
bug somewhere and go for the embedded HTML approach that you suggest, since
most of those at the tutorial would have this bug.

Cheers!
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130603/54b0f069/attachment.html 


More information about the IPython-dev mailing list