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 b5c2c30 commit 8081f57Copy full SHA for 8081f57
webio_jupyter_extension/webio-jupyter-labextension/labextension.ts
@@ -232,10 +232,17 @@ class WebIONotebookManager {
232
) {
233
// Stop attempting to handle callbacks if previous kernel is gone
234
this._webIO.setSendCallback((msg: any) => {});
235
+
236
+ // Close comm to force a re-connect to the new/restarted kernel
237
+ this.comm!.close();
238
}
239
},
240
this,
241
);
242
+ this.comm.onClose = (msg: any) => {
243
+ // Undefine comm so that the next connect call creates a new comm
244
+ this.comm = undefined;
245
+ };
246
247
this.setWebIOMetadata(kernel.id, this.comm.commId);
248
0 commit comments