From ab9e4197b174e08d32f354426628a13b2156c843 Mon Sep 17 00:00:00 2001 From: Jason Weill Date: Wed, 29 May 2024 11:11:47 -0700 Subject: [PATCH] Shuts the notebook down without the confirmation dialog --- packages/notebook-extension/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }, });