[IPython-dev] datavis with ipython notebook
hugo
hugo at continuum.io
Mon Feb 13 13:42:09 EST 2012
On 02/13/2012 01:34 PM, Chen-Shan Chin wrote:
> The jsplot example is great and cool.
>
> Regarding bi-directional communication, I have spent my last few days understanding the websocket/zmq architecture of the ipython notebook. Originally, I tried to see whether it is possible to build a "AuxIO" websocket-zmq bridge for bidirectional communication of javascript widgets along with the other channels. However, I don't think I know how to do it right at this moment. In the mean time, it is fairly easy to have some independent simple websocket-zmq bridge to facilitate slightly more complicate bi-direction connections.
>
> As for controlling a d3.js (or other javascript libs) elements from python directly, I have been playing with displaypub.publish_javascript and display_javascript(js, raw=True) to push javascript to a display element. If I understand it correctly, the publish_javascript and display_javascript can push javascript to client immediately while the display.Javascript() only pushes if it is at the end of a cell. Is this correct?
>
> --Jason
>
>
regarding websocket zmq bridges, I wrote one that I've been using, it
only supports REQ and SUB style communications on the JS side though.
https://github.com/hhuuggoo/ZmqWebBridge
this guy has one over stomp that is a bit more general but I haven't had
time to look at it yet.
https://github.com/progrium/nullmq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120213/e0df5bad/attachment.html>
More information about the IPython-dev
mailing list