We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1abb019 commit e4ede7eCopy full SHA for e4ede7e
ipykernel/zmqshell.py
@@ -144,11 +144,17 @@ def clear_output(self, wait=False):
144
"""
145
content = dict(wait=wait)
146
self._flush_streams()
147
+ msg = self.session.msg("clear_output", json_clean(content), parent=self.parent_header)
148
+
149
+ # see publish() for details on how this works
150
+ for hook in self._hooks:
151
+ msg = hook(msg)
152
+ if msg is None:
153
+ return
154
155
self.session.send(
156
self.pub_socket,
- "clear_output",
- content,
- parent=self.parent_header,
157
+ msg,
158
ident=self.topic,
159
)
160
0 commit comments