Merge pull request #2061 from dkrenn/dkrenn/event-finished-exec

add event for finished execution of cell
Min RK 9 years ago committed by GitHub
commit cd47dac0ff

@ -334,6 +334,12 @@ define([
CodeCell.msg_cells[this.last_msg_id] = this;
this.render();
this.events.trigger('execute.CodeCell', {cell: this});
var that = this;
this.events.on('finished_iopub.Kernel', function (evt, data) {
if (that.kernel.id === data.kernel.id && that.last_msg_id === data.msg_id) {
that.events.trigger('finished_execute.CodeCell', {cell: that});
}
});
};
/**

@ -940,6 +940,7 @@ define([
this.clear_callbacks_for_msg(msg_id);
}
}
this.events.trigger('finished_iopub.Kernel', {kernel: this, msg_id: msg_id});
};
/**

Loading…
Cancel
Save