[IPython-dev] Interactive SVG is not interactive in a notebook
Sat Jun 8 10:15:15 CDT 2013
I was able to have it work (at least tooltip showing some text), with the help of jQuery , with the following.
function ShowTooltip(evt, mouseovertext)
length = tooltip.getComputedTextLength();
the script tag in the sag is not visible while inspecting the dom, but It is definitively saved in the notebook.
My guess is that firefox/chrome…etc are stripping JS.
Hope it will help you to start achieving what you want.
Le 8 juin 2013 à 16:20, Benjamin Root a écrit :
> On Mon, Jun 3, 2013 at 10:58 AM, Matthias BUSSONNIER <firstname.lastname@example.org> wrote:
> Le 3 juin 2013 à 15:31, Benjamin Root a écrit :
>> On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER <email@example.com> wrote:
>> Hi ben,
>> Le 3 juin 2013 à 00:43, Benjamin Root a écrit :
>> 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.
> Could it be linked to
> https://github.com/ipython/ipython/issues/1866 ?
> Can you share an ipynb so that I can take a look ?
> Ben Root
> <SVG test.ipynb><plot_demo.svg>_______________________________________________
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev