{ "name": "notebook", "displayName": "%displayName%", "description": "%description%", "version": "0.1.0", "publisher": "Microsoft", "engines": { "vscode": "*", "azdata": "*" }, "aiKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e", "main": "./out/extension", "activationEvents": [ "*" ], "contributes": { "configuration": { "type": "object", "title": "%notebook.configuration.title%", "properties": { "notebook.collapseBookItems": { "type": "boolean", "default": false, "description": "%notebook.collapseBookItems.description%" }, "notebook.maxBookSearchDepth": { "type": "number", "default": 10, "description": "%notebook.maxBookSearchDepth.description%" }, "notebook.pythonPath": { "type": "string", "default": "", "description": "%notebook.pythonPath.description%" }, "notebook.useExistingPython": { "type": "boolean", "default": false, "description": "%notebook.useExistingPython.description%" }, "notebook.dontPromptPythonUpdate": { "type": "boolean", "default": false, "description": "%notebook.dontPromptPythonUpdate.description%" }, "notebook.jupyterServerShutdownTimeout": { "type": "number", "default": 5, "minimum": 0, "description": "%notebook.jupyterServerShutdownTimeout.description%" }, "notebook.overrideEditorTheming": { "type": "boolean", "default": true, "description": "%notebook.overrideEditorTheming.description%" }, "notebook.allowRoot": { "type": "boolean", "default": false, "description": "%notebook.allowRoot.description%" }, "notebook.maxTableRows": { "type": "number", "default": 5000, "description": "%notebook.maxTableRows.description%" }, "notebook.trustedBooks": { "type": "array", "default": [], "description": "%notebook.trustedBooks.description%", "items": { "type": "string" } }, "notebook.remoteBookDownloadTimeout": { "type": "number", "default": 60000, "description": "%notebook.remoteBookDownloadTimeout.description%" }, "notebook.pinnedNotebooks": { "type": "array", "default": [], "description": "%notebook.pinnedNotebooks.description%", "items": { "type": "object" } } } }, "commands": [ { "command": "notebook.command.analyzeNotebook", "title": "%notebook.analyzeJupyterNotebook%" }, { "command": "_notebook.command.new", "title": "%notebook.command.new%", "icon": { "dark": "resources/dark/new_notebook_inverse.svg", "light": "resources/light/new_notebook.svg" } }, { "command": "notebook.command.open", "title": "%notebook.command.open%" }, { "command": "notebook.command.runactivecell", "title": "%notebook.command.runactivecell%", "icon": "resources/dark/touchbar_run_cell.png" }, { "command": "notebook.command.clearactivecellresult", "title": "%notebook.command.clearactivecellresult%" }, { "command": "notebook.command.runallcells", "title": "%notebook.command.runallcells%" }, { "command": "notebook.command.addcode", "title": "%notebook.command.addcode%" }, { "command": "notebook.command.addtext", "title": "%notebook.command.addtext%" }, { "command": "notebook.command.addcell", "title": "%notebook.command.addcell%", "icon": "resources/dark/touchbar_add_cell.png" }, { "command": "jupyter.cmd.analyzeNotebook", "title": "%title.analyzeJupyterNotebook%" }, { "command": "jupyter.task.newNotebook", "title": "%title.newJupyterNotebook%", "icon": { "dark": "resources/dark/new_notebook_inverse.svg", "light": "resources/light/new_notebook.svg" } }, { "command": "jupyter.task.openNotebook", "title": "%title.openJupyterNotebook%" }, { "command": "jupyter.cmd.newNotebook", "title": "%title.newJupyterNotebook%", "icon": { "dark": "resources/dark/new_notebook_inverse.svg", "light": "resources/light/new_notebook.svg" } }, { "command": "jupyter.cmd.managePackages", "title": "%title.managePackages%", "icon": { "dark": "resources/dark/packages_inverse.svg", "light": "resources/light/packages.svg" } }, { "command": "jupyter.cmd.configurePython", "title": "%title.configurePython%" }, { "command": "jupyter.reinstallDependencies", "title": "%title.reinstallNotebookDependencies%" }, { "command": "books.sqlserver2019", "title": "%title.SQL19PreviewBook%", "category": "%books-preview-category%" }, { "command": "books.command.openLocalizedBooks", "title": "%title.PreviewLocalizedBook%", "category": "%books-preview-category%" }, { "command": "notebook.command.revealInBooksViewlet", "title": "%title.revealInBooksViewlet%", "category": "%books-preview-category%" }, { "command": "notebook.command.saveBook", "title": "%title.saveJupyterBook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/save_inverse.svg", "light": "resources/light/save.svg" } }, { "command": "notebook.command.trustBook", "title": "%title.trustBook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/trust_inverse.svg", "light": "resources/light/trust.svg" } }, { "command": "notebook.command.searchBook", "title": "%title.searchJupyterBook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/search_inverse.svg", "light": "resources/light/search.svg" } }, { "command": "notebook.command.searchProvidedBook", "title": "%title.searchJupyterBook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/search_inverse.svg", "light": "resources/light/search.svg" } }, { "command": "notebook.command.openBook", "title": "%title.openJupyterBook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/open_book_inverse.svg", "light": "resources/light/open_book.svg" } }, { "command": "notebook.command.openNotebookFolder", "title": "%title.openNotebookFolder%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/open_folder_inverse.svg", "light": "resources/light/open_folder.svg" } }, { "command": "notebook.command.closeBook", "title": "%title.closeJupyterBook%" }, { "command": "notebook.command.addNotebook", "title": "%title.addNotebook%" }, { "command": "notebook.command.addMarkdown", "title": "%title.addMarkdown%" }, { "command": "notebook.command.closeNotebook", "title": "%title.closeNotebook%" }, { "command": "notebook.command.removeNotebook", "title": "%title.removeNotebook%" }, { "command": "notebook.command.moveTo", "title": "%title.moveTo%" }, { "command": "notebook.command.createBook", "title": "%title.createJupyterBook%", "category": "%books-preview-category%" }, { "command": "notebook.command.openRemoteBook", "title": "%title.openRemoteJupyterBook%", "category": "%books-preview-category%" }, { "command": "notebook.command.pinNotebook", "title": "%title.pinNotebook%", "category": "%books-preview-category%", "icon": "$(pinned)" }, { "command": "notebook.command.unpinNotebook", "title": "%title.unpinNotebook%", "category": "%books-preview-category%", "icon": { "dark": "resources/dark/unpin_inverse.svg", "light": "resources/light/unpin.svg" } } ], "languages": [ { "id": "notebook", "extensions": [ ".ipynb" ], "aliases": [ "Notebook" ], "configuration": "./language-configuration.json" } ], "grammars": [ { "language": "notebook", "scopeName": "source.notebook", "path": "./syntaxes/notebook.tmLanguage.json" } ], "menus": { "commandPalette": [ { "command": "notebook.command.analyzeNotebook", "when": "false" }, { "command": "_notebook.command.new", "when": "false" }, { "command": "notebook.command.open" }, { "command": "notebook.command.runactivecell", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.clearactivecellresult", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.runallcells", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.addcode", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.addtext", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.addcell", "when": "false" }, { "command": "jupyter.task.newNotebook", "when": "false" }, { "command": "jupyter.cmd.newNotebook", "when": "false" }, { "command": "jupyter.cmd.analyzeNotebook", "when": "false" }, { "command": "jupyter.task.openNotebook", "when": "false" }, { "command": "jupyter.cmd.configurePython", "when": "!notebook:runningOnSAW" }, { "command": "jupyter.reinstallDependencies", "when": "!notebook:runningOnSAW" }, { "command": "jupyter.cmd.managePackages", "when": "false" }, { "command": "books.sqlserver2019", "when": "sqlserver2019" }, { "command": "notebook.command.saveBook", "when": "false" }, { "command": "notebook.command.searchBook", "when": "false" }, { "command": "notebook.command.searchProvidedBook", "when": "false" }, { "command": "notebook.command.trustBook", "when": "view == bookTreeView && viewItem == savedBook" }, { "command": "notebook.command.closeBook", "when": "false" }, { "command": "notebook.command.addNotebook", "when": "false" }, { "command": "notebook.command.addMarkdown", "when": "false" }, { "command": "notebook.command.closeNotebook", "when": "false" }, { "command": "notebook.command.removeNotebook", "when": "false" }, { "command": "notebook.command.moveTo", "when": "false" }, { "command": "notebook.command.revealInBooksViewlet", "when": "false" }, { "command": "notebook.command.pinNotebook", "when": "false" }, { "command": "notebook.command.unpinNotebook", "when": "false" } ], "touchBar": [ { "command": "notebook.command.runactivecell", "when": "activeEditor == workbench.editor.notebookEditor", "group": "1_notebook@1" }, { "command": "notebook.command.addcell", "when": "activeEditor == workbench.editor.notebookEditor", "group": "1_notebook@2" } ], "objectExplorer/item/context": [ { "command": "notebook.command.analyzeNotebook", "when": "nodeType=~/^mssqlCluster/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == mssqlCluster:file", "group": "1notebook@1" }, { "command": "jupyter.cmd.analyzeNotebook", "when": "nodeType=~/^hdfs/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == hdfs:file", "group": "1notebook@1" } ], "view/item/context": [ { "command": "notebook.command.trustBook", "when": "view == bookTreeView && viewItem == savedBook", "group": "inline" }, { "command": "notebook.command.searchBook", "when": "view == bookTreeView && viewItem == savedBook || viewItem == section", "group": "inline" }, { "command": "notebook.command.searchProvidedBook", "when": "view == providedBooksView && viewItem == providedBook", "group": "inline" }, { "command": "notebook.command.saveBook", "when": "view == providedBooksView && viewItem == providedBook", "group": "inline" }, { "command": "notebook.command.closeBook", "when": "view == bookTreeView && viewItem == savedBook" }, { "command": "notebook.command.closeNotebook", "when": "view == bookTreeView && viewItem == savedNotebook" }, { "command": "notebook.command.removeNotebook", "when": "view == bookTreeView && viewItem == savedBookNotebook" }, { "command": "notebook.command.addNotebook", "when": "view == bookTreeView && viewItem == section || view == bookTreeView && viewItem == savedBook", "group": "newFile@1" }, { "command": "notebook.command.addMarkdown", "when": "view == bookTreeView && viewItem == section || view == bookTreeView && viewItem == savedBook", "group": "newFile@1" }, { "command": "notebook.command.moveTo", "when": "view == bookTreeView && viewItem == savedNotebook || view == bookTreeView && viewItem == savedBookNotebook || view == bookTreeView && viewItem == section || view == bookTreeView && viewItem == Markdown" }, { "command": "notebook.command.pinNotebook", "when": "view == bookTreeView && viewItem == savedNotebook || view == bookTreeView && viewItem == savedBookNotebook || view == bookTreeView && viewItem == Markdown", "group": "inline" }, { "command": "notebook.command.unpinNotebook", "when": "view == pinnedBooksView || view == bookTreeView && viewItem == pinnedNotebook", "group": "inline" } ], "view/title": [ { "command": "notebook.command.openBook", "when": "view == bookTreeView", "group": "navigation" }, { "command": "books.sqlserver2019", "when": "view == providedBooksView" }, { "command": "notebook.command.openNotebookFolder", "when": "view == bookTreeView", "group": "navigation" }, { "command": "notebook.command.openRemoteBook", "when": "view == bookTreeView" }, { "command": "notebook.command.createBook", "when": "view == bookTreeView" } ], "notebook/toolbar": [ { "command": "jupyter.cmd.managePackages", "when": "providerId == jupyter && notebook:pythonInstalled && !notebook:runningOnSAW" } ] }, "views": { "notebooks": [ { "id": "pinnedBooksView", "name": "%title.PinnedBooks%", "when": "showPinnedbooks" }, { "id": "bookTreeView", "name": "%title.SavedBooks%" }, { "id": "providedBooksView", "name": "%title.ProvidedBooks%" } ] }, "keybindings": [ { "command": "notebook.command.runactivecell", "key": "F5", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.clearactivecellresult", "key": "Ctrl+Shift+R", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.runallcells", "key": "Ctrl+Shift+F5", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.addcode", "key": "Ctrl+Shift+C", "when": "activeEditor == workbench.editor.notebookEditor" }, { "command": "notebook.command.addtext", "key": "Ctrl+Shift+T", "when": "activeEditor == workbench.editor.notebookEditor" } ], "notebook.languagemagics": [ { "magic": "lang_python", "language": "python", "executionTarget": null, "kernels": [ "sql" ] }, { "magic": "lang_r", "language": "r", "executionTarget": null, "kernels": [ "sql" ] }, { "magic": "lang_java", "language": "java", "executionTarget": null, "kernels": [ "sql" ] } ], "notebook.providers": { "provider": "jupyter", "fileExtensions": [ "IPYNB" ], "standardKernels": [ { "name": "pysparkkernel", "displayName": "PySpark", "connectionProviderIds": [ "MSSQL" ], "blockedOnSAW": true }, { "name": "sparkkernel", "displayName": "Spark | Scala", "connectionProviderIds": [ "MSSQL" ], "blockedOnSAW": true }, { "name": "sparkrkernel", "displayName": "Spark | R", "connectionProviderIds": [ "MSSQL" ], "blockedOnSAW": true }, { "name": "python3", "displayName": "Python 3", "connectionProviderIds": [] }, { "name": "powershell", "displayName": "PowerShell", "connectionProviderIds": [] } ] } }, "dependencies": { "@jupyterlab/services": "^3.2.1", "@microsoft/ads-extension-telemetry": "^1.1.3", "adm-zip": "^0.4.14", "error-ex": "^1.3.1", "fast-glob": "^3.1.0", "fs-extra": "^5.0.0", "glob": "^7.1.1", "js-yaml": "^3.12.1", "node-fetch": "^2.6.1", "request": "^2.88.0", "tar": "^6.1.6", "vscode-languageclient": "^5.3.0-next.1", "vscode-nls": "^4.0.0", "ws": "^7.2.0" }, "devDependencies": { "@types/adm-zip": "^0.4.32", "@types/fs-extra": "^5.0.0", "@types/glob": "^7.1.1", "@types/js-yaml": "^3.12.1", "@types/mocha": "^5.2.5", "@types/node": "^12.11.7", "@types/request": "^2.48.1", "@types/rimraf": "^2.0.2", "@types/sinon": "^9.0.4", "@types/tar": "^4.0.3", "@types/uuid": "^3.4.5", "assert": "^1.4.1", "mocha": "^5.2.0", "mocha-junit-reporter": "^1.17.0", "mocha-multi-reporters": "^1.1.7", "nock": "^13.0.2", "should": "^13.2.3", "sinon": "^9.0.2", "typemoq": "^2.1.0", "vscodetestcover": "^1.1.0" }, "resolutions": { "url-parse": "^1.5.1" }, "enableProposedApi": true }