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.
2 parents eed1caf + a53d2c8 commit 34baae5Copy full SHA for 34baae5
notebook/services/kernels/handlers.py
@@ -456,6 +456,12 @@ def on_close(self):
456
self._close_future.set_result(None)
457
458
def _send_status_message(self, status):
459
+ iopub = self.channels.get('iopub', None)
460
+ if iopub and not iopub.closed():
461
+ # flush IOPub before sending a restarting/dead status message
462
+ # ensures proper ordering on the IOPub channel
463
+ # that all messages from the stopped kernel have been delivered
464
+ iopub.flush()
465
msg = self.session.msg("status",
466
{'execution_state': status}
467
)
0 commit comments