##// END OF EJS Templates
Update directview.ipynb & allowing no-callbacks in kernel.execute.
Brian Granger -
Show More
@@ -262,6 +262,7 b' var IPython = (function (IPython) {'
262 // complete_reply message documented here:
262 // complete_reply message documented here:
263 //
263 //
264 // http://ipython.org/ipython-doc/dev/development/messaging.html#complete
264 // http://ipython.org/ipython-doc/dev/development/messaging.html#complete
265 callbacks = callbacks || {};
265 var content = {
266 var content = {
266 text : '',
267 text : '',
267 line : line,
268 line : line,
@@ -303,7 +304,7 b' var IPython = (function (IPython) {'
303
304
304
305
305 Kernel.prototype.set_callbacks_for_msg = function (msg_id, callbacks) {
306 Kernel.prototype.set_callbacks_for_msg = function (msg_id, callbacks) {
306 this._msg_callbacks[msg_id] = callbacks;
307 this._msg_callbacks[msg_id] = callbacks || {};
307 }
308 }
308
309
309
310
@@ -320,7 +321,7 b' var IPython = (function (IPython) {'
320 }
321 }
321 };
322 };
322
323
323 if (content.payload !== undefined) {
324 if (content.payload !== undefined && callbacks.cell !== undefined) {
324 var payload = content.payload || [];
325 var payload = content.payload || [];
325 this._handle_payload(callbacks.cell, payload);
326 this._handle_payload(callbacks.cell, payload);
326 }
327 }
@@ -9,7 +9,25 b''
9 {
9 {
10 "cell_type": "code",
10 "cell_type": "code",
11 "input": [
11 "input": [
12 ""
12 "from directview import interact",
13 "from IPython.parallel import Client"
14 ],
15 "language": "python",
16 "outputs": []
17 },
18 {
19 "cell_type": "code",
20 "input": [
21 "c = Client()",
22 "dv = c[:]"
23 ],
24 "language": "python",
25 "outputs": []
26 },
27 {
28 "cell_type": "code",
29 "input": [
30 "interact(dv)"
13 ],
31 ],
14 "language": "python",
32 "language": "python",
15 "outputs": []
33 "outputs": []
General Comments 0
You need to be logged in to leave comments. Login now