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

Benjamin Root ben.root at ou.edu
Sat Jun 8 11:36:31 EDT 2013


On Sat, Jun 8, 2013 at 11:15 AM, Matthias BUSSONNIER <
bussonniermatthias at gmail.com> wrote:

> Hi Ben,
>
> 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)
>     {
>         console.log(mouseovertext, tooltip_bg)
>         $(tooltip).text(mouseovertext);
>         $(tooltip).attr('visibility','visible');
>         length = tooltip.getComputedTextLength();
>         $(tooltip_bg).attr('width',length+10);
>         $(tooltip_bg).attr('visibility','visible');
>     }
>
>
> 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.
>

Well, that's great, but like I said, I am not a web developer.  Could you
pass back the notebook and the svg so I can see what you did?  Just simply
changing that in the script doesn't work because there is obviously more to
it than just that.

Thanks,
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/3dae4c94/attachment.html>


More information about the IPython-dev mailing list