Skip to content

Commit

Permalink
Shuts the notebook down without the confirmation dialog (#7384)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill authored May 30, 2024
1 parent eace81c commit 433f180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ const closeTab: JupyterFrontEndPlugin<void> = {
commands.addCommand(id, {
label: trans.__('Close and Shut Down Notebook'),
execute: async () => {
await commands.execute('notebook:close-and-shutdown');
// Shut the kernel down, without confirmation
await commands.execute('notebook:shutdown-kernel', { activate: false });
window.close();
},
});
Expand Down

0 comments on commit 433f180

Please sign in to comment.