Skip to content

Commit

Permalink
Shuts the notebook down without the confirmation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed May 29, 2024
1 parent 0a66f40 commit ab9e419
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 ab9e419

Please sign in to comment.