From cda3e77e388716a2c46f51df39263e8cb0a8b05c Mon Sep 17 00:00:00 2001 From: dinohamzic Date: Wed, 29 Oct 2025 13:50:52 +0100 Subject: [PATCH 1/2] feat: Add Deepnote commands to view title bar and explorer context menu --- package.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/package.json b/package.json index c73aea4449..b33827a667 100644 --- a/package.json +++ b/package.json @@ -717,6 +717,23 @@ } ], "menus": { + "view/title": [ + { + "command": "deepnote.newProject", + "when": "view == deepnoteExplorer", + "group": "navigation@1" + }, + { + "command": "deepnote.importNotebook", + "when": "view == deepnoteExplorer", + "group": "navigation@2" + }, + { + "command": "deepnote.refreshExplorer", + "when": "view == deepnoteExplorer", + "group": "navigation@3" + } + ], "editor/context": [ { "submenu": "editor.interactiveWindow.context", @@ -937,6 +954,14 @@ } ], "explorer/context": [ + { + "command": "deepnote.newProject", + "group": "Deepnote@1" + }, + { + "command": "deepnote.importNotebook", + "group": "Deepnote@2" + }, { "when": "resourceLangId == python && !notebookEditorFocused && isWorkspaceTrusted", "command": "jupyter.runFileInteractive", From 5ff2133e33f81fcd5ff17b4e893cb0a826e9ce03 Mon Sep 17 00:00:00 2001 From: dinohamzic Date: Wed, 29 Oct 2025 14:22:07 +0100 Subject: [PATCH 2/2] feat: tweak position --- package.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b33827a667..695f0f7775 100644 --- a/package.json +++ b/package.json @@ -714,6 +714,10 @@ { "id": "editor.interactiveWindow.context", "label": "%jupyter.command.editor.interactiveWindow.context.label%" + }, + { + "id": "deepnote.explorer.context", + "label": "Deepnote" } ], "menus": { @@ -782,6 +786,14 @@ "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" } ], + "deepnote.explorer.context": [ + { + "command": "deepnote.newProject" + }, + { + "command": "deepnote.importNotebook" + } + ], "editor/title": [ { "command": "jupyter.restartkernel", @@ -955,12 +967,9 @@ ], "explorer/context": [ { - "command": "deepnote.newProject", - "group": "Deepnote@1" - }, - { - "command": "deepnote.importNotebook", - "group": "Deepnote@2" + "submenu": "deepnote.explorer.context", + "when": "isWorkspaceTrusted", + "group": "navigation@10" }, { "when": "resourceLangId == python && !notebookEditorFocused && isWorkspaceTrusted",