mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
add Kernel.clear_callbacks_for_msg
This commit is contained in:
parent
5a3da993e3
commit
b322e72bee
@ -403,9 +403,16 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
|
||||
Kernel.prototype.clear_callbacks_for_msg = function (msg_id) {
|
||||
if (this._msg_callbacks[msg_id] !== undefined ) {
|
||||
delete this._msg_callbacks[msg_id];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Kernel.prototype.set_callbacks_for_msg = function (msg_id, callbacks) {
|
||||
this._msg_callbacks[msg_id] = callbacks || {};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Kernel.prototype._handle_shell_reply = function (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user