mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
note v4.1 msg spec change in clear_output handler
This commit is contained in:
parent
747c9ca29c
commit
1b74ee0c3e
@ -743,7 +743,12 @@ var IPython = (function (IPython) {
|
||||
|
||||
|
||||
OutputArea.prototype.handle_clear_output = function (msg) {
|
||||
this.clear_output(msg.content.wait);
|
||||
// msg spec v4 had stdout, stderr, display keys
|
||||
// v4.1 replaced these with just wait
|
||||
// The default behavior is the same (stdout=stderr=display=True, wait=False),
|
||||
// so v4 messages will still be properly handled,
|
||||
// except for the rarely used clearing less than all output.
|
||||
this.clear_output(msg.content.wait || false);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user