[IPython-dev] datavis with ipython notebook
Fri Jan 27 16:19:04 CST 2012
On Friday, January 27, 2012 02:07:38 pm Mark Voorhies wrote:
> On Friday, January 27, 2012 01:35:04 pm Bartosz Telenczuk wrote:
> > I completely agree, it would be really nice to enable user interaction with the plots in notebooks. If I am not mistaken, Sage has also a similar feature.
> SVG supports links on elements by putting them inside an anchor element with an xlink:href attribute.
> Firefox supports this (left click to open link in current tab, middle click to open link in new tab, right
> click context menu not supported). I haven't tested in Chrome, but it is supported in old versions of webkit.
> So, a baroque feedback strategy would be to make localhost GET requests via these links to communicate
> user actions.
> Not sure if the links should point at the tornado instance running the notebook or at a separate server instance
> (which seems cleaner, but also seems prone to threading issues).
> Haven't actually tried this yet, but I've been playing quite a bit with xlink:href and xlink:title in SVG to mark
> up NetworkX outputs.
Here (attached) is an example of xlink:href/xlink:title in an SVG (in this case, linking some gene annotation
databases to a graph of inferred relationships between genes and annotations).
There is a nice description of SVG linking (including links to an element within an SVG with optional transformation)
in chapter 17 of the SVG spec:
> > I attach my sample notebook for testting (when you click on one of text(!) labels: 'rabbit' or 'frog' some bars should disappear)
> > Bartosz
> > On 27.01.2012, at 18:34, Brian Granger wrote:
> > > We would definitely like to support this but there are some technical
> > > will have to work out before this is possible.
> > >
> > > On Thu, Jan 26, 2012 at 11:09 PM, Chen-Shan Chin <firstname.lastname@example.org> wrote:
> > >>
> > >> --Jason Chin
> > >> _______________________________________________
> > >> IPython-dev mailing list
> > >> IPythonemail@example.com
> > >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> > >
> > >
> > >
> > Bartosz Telenczuk
> > Institute for Theoretical Biology
> > Humboldt University of Berlin, Germany
> > Phone: +4930/2093-8838
> > Homepage: http://neuroscience.telenczuk.pl
> > _______________________________________________
> > IPython-dev mailing list
> > IPythonfirstname.lastname@example.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> IPython-dev mailing list
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 142312 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/ipython-dev/attachments/20120127/ca611993/attachment-0001.bin
More information about the IPython-dev