Show More
@@ -39,7 +39,7 b' version = __version__ # backwards compatibility name' | |||||
39 | version_info = (_version_major, _version_minor, _version_patch, _version_extra) |
|
39 | version_info = (_version_major, _version_minor, _version_patch, _version_extra) | |
40 |
|
40 | |||
41 | # Change this when incrementing the kernel protocol version |
|
41 | # Change this when incrementing the kernel protocol version | |
42 |
kernel_protocol_version_info = (4, |
|
42 | kernel_protocol_version_info = (4, 1) | |
43 |
|
43 | |||
44 | description = "IPython: Productive Interactive Computing" |
|
44 | description = "IPython: Productive Interactive Computing" | |
45 |
|
45 |
@@ -743,7 +743,12 b' var IPython = (function (IPython) {' | |||||
743 |
|
743 | |||
744 |
|
744 | |||
745 | OutputArea.prototype.handle_clear_output = function (msg) { |
|
745 | OutputArea.prototype.handle_clear_output = function (msg) { | |
746 | this.clear_output(msg.content.wait); |
|
746 | // msg spec v4 had stdout, stderr, display keys | |
|
747 | // v4.1 replaced these with just wait | |||
|
748 | // The default behavior is the same (stdout=stderr=display=True, wait=False), | |||
|
749 | // so v4 messages will still be properly handled, | |||
|
750 | // except for the rarely used clearing less than all output. | |||
|
751 | this.clear_output(msg.content.wait || false); | |||
747 | }; |
|
752 | }; | |
748 |
|
753 | |||
749 |
|
754 |
@@ -5,6 +5,13 b'' | |||||
5 | ====================== |
|
5 | ====================== | |
6 |
|
6 | |||
7 |
|
7 | |||
|
8 | Versioning | |||
|
9 | ========== | |||
|
10 | ||||
|
11 | The IPython message specification is versioned independently of IPython. | |||
|
12 | The current version of the specification is 4.1. | |||
|
13 | ||||
|
14 | ||||
8 | Introduction |
|
15 | Introduction | |
9 | ============ |
|
16 | ============ | |
10 |
|
17 | |||
@@ -1001,6 +1008,14 b' Message type: ``clear_output``::' | |||||
1001 | 'wait' : bool, |
|
1008 | 'wait' : bool, | |
1002 | } |
|
1009 | } | |
1003 |
|
1010 | |||
|
1011 | .. versionchanged:: 4.1 | |||
|
1012 | ||||
|
1013 | 'stdout', 'stderr', and 'display' boolean keys for selective clearing are removed, | |||
|
1014 | and 'wait' is added. | |||
|
1015 | The selective clearing keys are ignored in v4 and the default behavior remains the same, | |||
|
1016 | so v4 clear_output messages will be safely handled by a v4.1 frontend. | |||
|
1017 | ||||
|
1018 | ||||
1004 | Messages on the stdin ROUTER/DEALER sockets |
|
1019 | Messages on the stdin ROUTER/DEALER sockets | |
1005 | =========================================== |
|
1020 | =========================================== | |
1006 |
|
1021 | |||
@@ -1071,7 +1086,9 b" access to the message between the monitor's send, and the monitor's recv." | |||||
1071 | Custom Messages |
|
1086 | Custom Messages | |
1072 | =============== |
|
1087 | =============== | |
1073 |
|
1088 | |||
1074 | IPython 2.0 adds a messaging system for developers to add their own objects with Frontend |
|
1089 | .. versionadded:: 4.1 | |
|
1090 | ||||
|
1091 | IPython 2.0 (msgspec v4.1) adds a messaging system for developers to add their own objects with Frontend | |||
1075 | and Kernel-side components, and allow them to communicate with each other. |
|
1092 | and Kernel-side components, and allow them to communicate with each other. | |
1076 | To do this, IPython adds a notion of a ``Comm``, which exists on both sides, |
|
1093 | To do this, IPython adds a notion of a ``Comm``, which exists on both sides, | |
1077 | and can communicate in either direction. |
|
1094 | and can communicate in either direction. | |
@@ -1081,8 +1098,6 b' and no messages expect a reply.' | |||||
1081 | The Kernel listens for these messages on the Shell channel, |
|
1098 | The Kernel listens for these messages on the Shell channel, | |
1082 | and the Frontend listens for them on the IOPub channel. |
|
1099 | and the Frontend listens for them on the IOPub channel. | |
1083 |
|
1100 | |||
1084 | .. versionadded:: 2.0 |
|
|||
1085 |
|
||||
1086 | Opening a Comm |
|
1101 | Opening a Comm | |
1087 | -------------- |
|
1102 | -------------- | |
1088 |
|
1103 |
General Comments 0
You need to be logged in to leave comments.
Login now