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

Benjamin Root ben.root@ou....
Sat Jun 15 12:33:05 CDT 2013


On Sat, Jun 8, 2013 at 11:36 AM, Benjamin Root <ben.root@ou.edu> wrote:

>
> On Sat, Jun 8, 2013 at 11:15 AM, Matthias BUSSONNIER <
> bussonniermatthias@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
>

I am still interested in understanding how you managed to get the SVG to
work in the notebook.  I have put a lot of time into making that SVG
example and I would hate to have it all go to waste for the tutorial.

Thank you,
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130615/47d3d5f0/attachment.html 


More information about the IPython-dev mailing list