mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
568 lines
16 KiB
JSON
568 lines
16 KiB
JSON
{
|
|
"name": "notebook",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "0.1.0",
|
|
"publisher": "Microsoft",
|
|
"engines": {
|
|
"vscode": "*",
|
|
"azdata": "*"
|
|
},
|
|
"main": "./out/extension",
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "%notebook.configuration.title%",
|
|
"properties": {
|
|
"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.overrideEditorTheming": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%notebook.overrideEditorTheming.description%"
|
|
},
|
|
"notebook.maxTableRows": {
|
|
"type": "number",
|
|
"default": 5000,
|
|
"description": "%notebook.maxTableRows.description%"
|
|
},
|
|
"notebook.trustedBooks": {
|
|
"type": "array",
|
|
"default": [],
|
|
"description": "%notebook.trustedBooks.description%",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"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%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"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.searchUntitledBook",
|
|
"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_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.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.closeNotebook",
|
|
"title": "%title.closeJupyterNotebook%"
|
|
},
|
|
{
|
|
"command": "notebook.command.createBook",
|
|
"title": "%title.createJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.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.managePackages",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "books.sqlserver2019",
|
|
"when": "sqlserver2019"
|
|
},
|
|
{
|
|
"command": "notebook.command.saveBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchUntitledBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.trustBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.revealInBooksViewlet",
|
|
"when": "false"
|
|
}
|
|
],
|
|
"notebooks/title": [
|
|
{
|
|
"command": "notebook.command.createBook",
|
|
"group": "secondary"
|
|
}
|
|
],
|
|
"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.searchUntitledBook",
|
|
"when": "view == providedBooksView && viewItem == providedBook && providedBooks",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.saveBook",
|
|
"when": "view == providedBooksView && viewItem == providedBook && providedBooks",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeNotebook",
|
|
"when": "view == bookTreeView && viewItem == savedNotebook"
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"notebook/toolbar": [
|
|
{
|
|
"command": "jupyter.cmd.managePackages",
|
|
"when": "providerId == jupyter && notebook:pythonInstalled"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"notebooks": [
|
|
{
|
|
"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"
|
|
]
|
|
},
|
|
{
|
|
"name": "sparkkernel",
|
|
"displayName": "Spark | Scala",
|
|
"connectionProviderIds": [
|
|
"MSSQL"
|
|
]
|
|
},
|
|
{
|
|
"name": "sparkrkernel",
|
|
"displayName": "Spark | R",
|
|
"connectionProviderIds": [
|
|
"MSSQL"
|
|
]
|
|
},
|
|
{
|
|
"name": "python3",
|
|
"displayName": "Python 3",
|
|
"connectionProviderIds": []
|
|
},
|
|
{
|
|
"name": "powershell",
|
|
"displayName": "PowerShell",
|
|
"connectionProviderIds": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@jupyterlab/services": "^3.2.1",
|
|
"@types/adm-zip": "^0.4.32",
|
|
"@types/tar": "^4.0.3",
|
|
"adm-zip": "^0.4.14",
|
|
"error-ex": "^1.3.1",
|
|
"fast-glob": "^3.1.0",
|
|
"figures": "^2.0.0",
|
|
"fs-extra": "^5.0.0",
|
|
"glob": "^7.1.1",
|
|
"node-fetch": "^2.3.0",
|
|
"request": "^2.88.0",
|
|
"tar": "^6.0.1",
|
|
"temp-write": "^3.4.0",
|
|
"vscode-languageclient": "^5.3.0-next.1",
|
|
"vscode-nls": "^4.0.0",
|
|
"ws": "^7.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@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/temp-write": "^3.3.0",
|
|
"@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",
|
|
"should": "^13.2.3",
|
|
"typemoq": "^2.1.0",
|
|
"vscodetestcover": "^1.0.9"
|
|
},
|
|
"enableProposedApi": true
|
|
}
|