|
55 | 55 | ], |
56 | 56 | "activationEvents": [ |
57 | 57 | "onLanguage:python", |
58 | | - "onLanguageModelTool:configure_notebook", |
59 | | - "onLanguageModelTool:notebook_install_packages", |
60 | | - "onLanguageModelTool:notebook_list_packages", |
| 58 | + "onLanguageModelTool:configure_deepnote_notebook", |
| 59 | + "onLanguageModelTool:deepnote_notebook_install_packages", |
| 60 | + "onLanguageModelTool:deepnote_notebook_list_packages", |
61 | 61 | "onNotebook:deepnote", |
62 | 62 | "onNotebook:interactive" |
63 | 63 | ], |
|
821 | 821 | ], |
822 | 822 | "submenus": [ |
823 | 823 | { |
824 | | - "id": "editor.interactiveWindow.context", |
| 824 | + "id": "deepnote.editor.interactiveWindow.context", |
825 | 825 | "label": "%deepnote.command.editor.interactiveWindow.context.label%" |
826 | 826 | }, |
827 | 827 | { |
|
859 | 859 | ], |
860 | 860 | "editor/context": [ |
861 | 861 | { |
862 | | - "submenu": "editor.interactiveWindow.context", |
863 | | - "group": "Jupyter2" |
| 862 | + "submenu": "deepnote.editor.interactiveWindow.context", |
| 863 | + "group": "Deepnote2" |
864 | 864 | }, |
865 | 865 | { |
866 | 866 | "when": "editorFocus && editorLangId == python && deepnote.hascodecells && !notebookEditorFocused && isWorkspaceTrusted", |
867 | 867 | "command": "deepnote.exportfileasnotebook", |
868 | | - "group": "Jupyter3@2" |
| 868 | + "group": "Deepnote3@2" |
869 | 869 | }, |
870 | 870 | { |
871 | 871 | "when": "resourceExtname == .deepnote", |
872 | 872 | "command": "deepnote.openInDeepnote", |
873 | 873 | "group": "navigation" |
874 | 874 | } |
875 | 875 | ], |
876 | | - "editor.interactiveWindow.context": [ |
| 876 | + "deepnote.editor.interactiveWindow.context": [ |
877 | 877 | { |
878 | 878 | "when": "editorFocus && editorLangId == python && deepnote.hascodecells && !notebookEditorFocused && isWorkspaceTrusted", |
879 | 879 | "command": "deepnote.runallcells", |
880 | | - "group": "Jupyter2" |
| 880 | + "group": "Deepnote2" |
881 | 881 | }, |
882 | 882 | { |
883 | 883 | "when": "editorFocus && editorLangId == python && deepnote.hascodecells && !notebookEditorFocused && isWorkspaceTrusted", |
884 | 884 | "command": "deepnote.runcurrentcell", |
885 | | - "group": "Jupyter2" |
| 885 | + "group": "Deepnote2" |
886 | 886 | }, |
887 | 887 | { |
888 | 888 | "when": "editorFocus && editorLangId == python && deepnote.hascodecells && !notebookEditorFocused && isWorkspaceTrusted", |
889 | 889 | "command": "deepnote.runcurrentcelladvance", |
890 | | - "group": "Jupyter2" |
| 890 | + "group": "Deepnote2" |
891 | 891 | }, |
892 | 892 | { |
893 | 893 | "command": "deepnote.runFileInteractive", |
894 | | - "group": "Jupyter2", |
| 894 | + "group": "Deepnote2", |
895 | 895 | "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" |
896 | 896 | }, |
897 | 897 | { |
898 | 898 | "command": "deepnote.runfromline", |
899 | | - "group": "Jupyter2", |
| 899 | + "group": "Deepnote2", |
900 | 900 | "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" |
901 | 901 | }, |
902 | 902 | { |
903 | 903 | "command": "deepnote.runtoline", |
904 | | - "group": "Jupyter2", |
| 904 | + "group": "Deepnote2", |
905 | 905 | "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" |
906 | 906 | }, |
907 | 907 | { |
908 | 908 | "command": "deepnote.execSelectionInteractive", |
909 | | - "group": "Jupyter2", |
| 909 | + "group": "Deepnote2", |
910 | 910 | "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" |
911 | 911 | } |
912 | 912 | ], |
|
1042 | 1042 | }, |
1043 | 1043 | { |
1044 | 1044 | "command": "deepnote.notebookeditor.export", |
1045 | | - "group": "Jupyter", |
| 1045 | + "group": "Deepnote", |
1046 | 1046 | "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted" |
1047 | 1047 | }, |
1048 | 1048 | { |
|
1158 | 1158 | { |
1159 | 1159 | "when": "resourceLangId == python && !notebookEditorFocused && isWorkspaceTrusted", |
1160 | 1160 | "command": "deepnote.runFileInteractive", |
1161 | | - "group": "Jupyter2" |
| 1161 | + "group": "Deepnote2" |
1162 | 1162 | }, |
1163 | 1163 | { |
1164 | 1164 | "when": "resourceExtname == .ipynb && isWorkspaceTrusted", |
1165 | 1165 | "command": "deepnote.importnotebookfile", |
1166 | | - "group": "Jupyter" |
| 1166 | + "group": "Deepnote" |
1167 | 1167 | } |
1168 | 1168 | ], |
1169 | 1169 | "commandPalette": [ |
|
2248 | 2248 | }, |
2249 | 2249 | { |
2250 | 2250 | "type": "webview", |
2251 | | - "id": "jupyterViewVariables", |
2252 | | - "name": "Jupyter Variables", |
| 2251 | + "id": "deepnoteViewVariables", |
| 2252 | + "name": "Deepnote Variables", |
2253 | 2253 | "when": "deepnote.hasNativeNotebookOrInteractiveWindowOpen" |
2254 | 2254 | } |
2255 | 2255 | ] |
|
2289 | 2289 | ], |
2290 | 2290 | "languageModelTools": [ |
2291 | 2291 | { |
2292 | | - "name": "configure_notebook", |
| 2292 | + "name": "configure_deepnote_notebook", |
2293 | 2293 | "displayName": "%deepnote.languageModelTools.configure_notebook.displayName%", |
2294 | 2294 | "modelDescription": "Tool used to configure a Notebook. ALWAYS use this tool before running/executing any Notebook Cells for the first time or before listing/installing packages in Notebooks for the first time. I.e. there is no need to use this tool more than once for the same notebook.", |
2295 | 2295 | "userDescription": "%deepnote.languageModelTools.configure_notebook.userDescription%", |
|
2318 | 2318 | "when": "workspacePlatform != webworker" |
2319 | 2319 | }, |
2320 | 2320 | { |
2321 | | - "name": "configure_python_notebook", |
2322 | | - "displayName": "Start Notebook Kernel", |
2323 | | - "modelDescription": "Selects a Python Kernel and starts it.", |
2324 | | - "tags": [ |
2325 | | - "extension_installed_by_tool", |
2326 | | - "install python package", |
2327 | | - "notebooks" |
2328 | | - ], |
2329 | | - "inputSchema": { |
2330 | | - "type": "object", |
2331 | | - "properties": { |
2332 | | - "filePath": { |
2333 | | - "description": "The absolute path of the notebook with the active kernel.", |
2334 | | - "type": "string" |
2335 | | - } |
2336 | | - }, |
2337 | | - "required": [ |
2338 | | - "filePath" |
2339 | | - ] |
2340 | | - }, |
2341 | | - "when": "false" |
2342 | | - }, |
2343 | | - { |
2344 | | - "name": "configure_non_python_notebook", |
2345 | | - "displayName": "Start Notebook Kernel", |
2346 | | - "modelDescription": "Selects the Notebook Kernel and starts it.", |
2347 | | - "tags": [ |
2348 | | - "extension_installed_by_tool", |
2349 | | - "jupyter", |
2350 | | - "notebooks" |
2351 | | - ], |
2352 | | - "inputSchema": { |
2353 | | - "type": "object", |
2354 | | - "properties": { |
2355 | | - "filePath": { |
2356 | | - "description": "The absolute path of the notebook with the active kernel.", |
2357 | | - "type": "string" |
2358 | | - } |
2359 | | - }, |
2360 | | - "required": [ |
2361 | | - "filePath" |
2362 | | - ] |
2363 | | - }, |
2364 | | - "when": "false" |
2365 | | - }, |
2366 | | - { |
2367 | | - "name": "notebook_list_packages", |
2368 | | - "displayName": "List Notebook Kernel Packages", |
| 2321 | + "name": "deepnote_notebook_list_packages", |
| 2322 | + "displayName": "List Deepnote Notebook Kernel Packages", |
2369 | 2323 | "modelDescription": "List the installed packages that are currently available in the selected kernel for a notebook editor. This tool should be used when working with a jupyter notebook with python code cells. Do not use this tool if not already working with a notebook, or for a language other than python. If the tool configure_notebooks exists, then ensure to call configure_notebooks before using this tool.", |
2370 | | - "userDescription": "%deepnote.languageModelTools.notebook_list_packages.userDescription%", |
| 2324 | + "userDescription": "%deepnote.languageModelTools.deepnote_notebook_list_packages.userDescription%", |
2371 | 2325 | "toolReferenceName": "listNotebookPackages", |
2372 | 2326 | "tags": [ |
2373 | 2327 | "python environment", |
|
2392 | 2346 | } |
2393 | 2347 | }, |
2394 | 2348 | { |
2395 | | - "name": "notebook_install_packages", |
| 2349 | + "name": "deepnote_notebook_install_packages", |
2396 | 2350 | "displayName": "Install Packages for Notebook", |
2397 | 2351 | "modelDescription": "Install a list of packages on a notebook kernel to be used within that notebook. This tool should be used when working with a jupyter notebook with python code cells. Do not use this tool if not already working with a notebook, or for a language other than python. If the tool configure_notebooks exists, then ensure to call configure_notebooks before using this tool.", |
2398 | | - "userDescription": "%deepnote.languageModelTools.notebook_install_packages.userDescription%", |
2399 | | - "toolReferenceName": "installNotebookPackages", |
| 2352 | + "userDescription": "%deepnote.languageModelTools.deepnote_notebook_install_packages.userDescription%", |
| 2353 | + "toolReferenceName": "installDeepnoteNotebookPackages", |
2400 | 2354 | "tags": [ |
2401 | 2355 | "python environment", |
2402 | 2356 | "jupyter environment", |
|
2428 | 2382 | } |
2429 | 2383 | }, |
2430 | 2384 | { |
2431 | | - "name": "restart_notebook_kernel", |
2432 | | - "displayName": "Restart Notebook", |
| 2385 | + "name": "restart_deepnote_notebook_kernel", |
| 2386 | + "displayName": "Restart Deepnote Notebook", |
2433 | 2387 | "modelDescription": "Tool used to restart a Notebook kernel. Some packages require a restart of the kernel after being installed. Use this if after installing a package if you know the package requires a restart, or if still getting an error about a missing package after installing.", |
2434 | | - "toolReferenceName": "restartNotebookKernel", |
| 2388 | + "toolReferenceName": "restartDeepnoteNotebookKernel", |
2435 | 2389 | "tags": [ |
2436 | 2390 | "extension_installed_by_tool", |
2437 | 2391 | "jupyter", |
|
0 commit comments