Skip to content

Commit 433f180

Browse files
authored
Shuts the notebook down without the confirmation dialog (#7384)
1 parent eace81c commit 433f180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/notebook-extension/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ const closeTab: JupyterFrontEndPlugin<void> = {
163163
commands.addCommand(id, {
164164
label: trans.__('Close and Shut Down Notebook'),
165165
execute: async () => {
166-
await commands.execute('notebook:close-and-shutdown');
166+
// Shut the kernel down, without confirmation
167+
await commands.execute('notebook:shutdown-kernel', { activate: false });
167168
window.close();
168169
},
169170
});

0 commit comments

Comments
 (0)