Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit433f180

Browse files
authored
Shuts the notebook down without the confirmation dialog (#7384)
1 parenteace81c commit433f180

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-
awaitcommands.execute('notebook:close-and-shutdown');
166+
// Shut the kernel down, without confirmation
167+
awaitcommands.execute('notebook:shutdown-kernel',{activate:false});
167168
window.close();
168169
},
169170
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp