##// END OF EJS Templates
Add event to kernel execution/shell reply....
Matthias BUSSONNIER -
Show More
@@ -246,6 +246,7 b' var IPython = (function (IPython) {'
246 246 allow_stdin : false
247 247 };
248 248 $.extend(true, content, options)
249 $([IPython.events]).trigger({type: 'Kernel.execution_request', kernel: this, content:content});
249 250 var msg = this._get_msg("execute_request", content);
250 251 this.shell_channel.send(JSON.stringify(msg));
251 252 this.set_callbacks_for_msg(msg.header.msg_id, callbacks);
@@ -312,6 +313,7 b' var IPython = (function (IPython) {'
312 313
313 314 Kernel.prototype._handle_shell_reply = function (e) {
314 315 reply = $.parseJSON(e.data);
316 $([IPython.events]).trigger({type: 'Kernel.shell_reply', kernel: this, reply:reply});
315 317 var header = reply.header;
316 318 var content = reply.content;
317 319 var metadata = reply.metadata;
General Comments 0
You need to be logged in to leave comments. Login now