Show More
@@ -262,6 +262,7 var IPython = (function (IPython) { | |||
|
262 | 262 | // complete_reply message documented here: |
|
263 | 263 | // |
|
264 | 264 | // http://ipython.org/ipython-doc/dev/development/messaging.html#complete |
|
265 | callbacks = callbacks || {}; | |
|
265 | 266 | var content = { |
|
266 | 267 | text : '', |
|
267 | 268 | line : line, |
@@ -303,7 +304,7 var IPython = (function (IPython) { | |||
|
303 | 304 | |
|
304 | 305 | |
|
305 | 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 var IPython = (function (IPython) { | |||
|
320 | 321 | } |
|
321 | 322 | }; |
|
322 | 323 | |
|
323 | if (content.payload !== undefined) { | |
|
324 | if (content.payload !== undefined && callbacks.cell !== undefined) { | |
|
324 | 325 | var payload = content.payload || []; |
|
325 | 326 | this._handle_payload(callbacks.cell, payload); |
|
326 | 327 | } |
@@ -9,7 +9,25 | |||
|
9 | 9 | { |
|
10 | 10 | "cell_type": "code", |
|
11 | 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 | 32 | "language": "python", |
|
15 | 33 | "outputs": [] |
General Comments 0
You need to be logged in to leave comments.
Login now