Skip to content

Commit a1790c8

Browse files
committed
fix for executing code after shutting down kernel
1 parent 0c1c130 commit a1790c8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/client/jupyter/jupyter_client/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export class JupyterClientAdapter extends EventEmitter implements IJupyterClient
6565

6666
this.startSocketServer().then(port => {
6767
const def = createDeferred<any>();
68-
//const newEnv = { "DEBUG_DJAYAMANNE_IPYTHON": "1" };
6968
const options = { env: newEnv, cwd: this.rootDir };
7069
this.process = child_process.spawn(PythonSettings.getInstance().pythonPath, [pyFile, port.toString()], options);
7170
this.process.stdout.setEncoding('utf8');

src/client/jupyter/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class Jupyter extends vscode.Disposable {
179179
});
180180
}));
181181
this.disposables.push(vscode.commands.registerCommand(Commands.Jupyter.Kernel.Kernel_Shut_Down, () => {
182-
this.kernel.shutdown();
182+
this.kernelManager.destroyRunningKernelFor('python');
183183
this.onKernelChanged();
184184
}));
185185
}

0 commit comments

Comments
 (0)