[IPython-dev] Interactive SVG is not interactive in a notebook
Benjamin Root
ben.root at ou.edu
Sat Jun 15 13:33:05 EDT 2013
On Sat, Jun 8, 2013 at 11:36 AM, Benjamin Root <ben.root at ou.edu> wrote:
>
> 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
>
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.python.org/pipermail/ipython-dev/attachments/20130615/47d3d5f0/attachment.html>
More information about the IPython-dev
mailing list