浏览代码

chore(haltAndClose): incorporate changes from #1302

alexandercbooth 8 年之前
父节点
当前提交
ea80b3ba3a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/notebook/plugin.ts

+ 1 - 1
src/notebook/plugin.ts

@@ -271,7 +271,7 @@ function addCommands(app: JupyterLab, services: IServiceManager, tracker: Notebo
     execute: () => {
       let current = tracker.currentWidget;
       if (current) {
-        current.dispose();
+        current.context.changeKernel(null).then(() => { current.dispose(); });
       }
     }
   });