diff --git a/packages/notebook-extension/src/index.ts b/packages/notebook-extension/src/index.ts index 0ba7340cfe..a4ea978b62 100644 --- a/packages/notebook-extension/src/index.ts +++ b/packages/notebook-extension/src/index.ts @@ -163,7 +163,8 @@ const closeTab: JupyterFrontEndPlugin = { 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(); }, });