<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 02/13/2012 01:34 PM, Chen-Shan Chin wrote:
<blockquote
cite="mid:32EC06F5-D0C6-4733-BAE8-4A58539415AE@infoecho.net"
type="cite">
<pre wrap="">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
</pre>
</blockquote>
<br>
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.<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://github.com/hhuuggoo/ZmqWebBridge">https://github.com/hhuuggoo/ZmqWebBridge</a><br>
<br>
this guy has one over stomp that is a bit more general but I haven't
had time to look at it yet.<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://github.com/progrium/nullmq">https://github.com/progrium/nullmq</a><br>
</body>
</html>