<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 10:58 AM, Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>Le 3 juin 2013 à 15:31, Benjamin Root a écrit :</div><div><div class="h5">
<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi ben,<br>
Le 3 juin 2013 à 00:43, Benjamin Root a écrit :<br>
<div><br>
> 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?<br>
<br>
</div>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 ?<br></blockquote><div><br></div><div>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.<br>
</div></div></div></div></blockquote><div><br></div></div></div><div>Could it be linked to </div><div><a href="https://github.com/ipython/ipython/issues/1866" target="_blank">https://github.com/ipython/ipython/issues/1866</a> ?</div>
<div><br></div><div>Can you share an ipynb so that I can take a look ? </div></div></div></blockquote><div><br></div><div>Sorry for the delay... hurricane season has started. Anyway, I attached an ipynb and the svg for your perusal. That notebook also has an attempt at adding the javascript separately, but I think I am doing it wrong. I am not a web dev, so this is all very new to me.<br>
<br></div><div>Thanks!<br></div><div>Ben Root<br></div></div></div></div>