[IPython-dev] datavis with ipython notebook
Tue Feb 7 01:17:33 CST 2012
Thanks. I have been playing around a number of ideas. I get to the stage that I can write d3.js + python script within the python notebook web interface and send the script through a zmq / websocket server to an IFRAME or a new browser window/tab. I put my preliminary results and some simple instruction at https://github.com/cschin/IPython-Notebook---d3.js-mashup
Obviously, there are a lot of interesting things that one can do along this line. Using an iframe / new browser might not be ideal. The extra zmq/websocket server is also not pretty. Any suggestions?
On Jan 27, 2012, at 2:19 PM, Mark Voorhies wrote:
> 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)
>>> 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
>>> Bartosz Telenczuk
>>> Institute for Theoretical Biology
>>> Humboldt University of Berlin, Germany
>>> Phone: +4930/2093-8838
>>> Homepage: http://neuroscience.telenczuk.pl
>>> IPython-dev mailing list
>> IPython-dev mailing list
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: catalases2.svg
> Type: image/svg+xml
> Size: 142312 bytes
> Desc: not available
> Url : http://mail.scipy.org/pipermail/ipython-dev/attachments/20120127/ca611993/attachment.bin
More information about the IPython-dev