Ported Analyze notebook code from SqlOpsStudio and make it work. (#3899)

* Ported Analyze notebook code from SqlOpsStudio and make it work.
if config.notebook.sqlKernelEnabled is true, use SQL provider;
Use Jupyter provider if Python is install, otherwise use buildIn Kernel.

* Analyze in Notebook Kernel can only be Python or "No Kernel". So remove Sql Kernel.
This commit is contained in:
Yurong He
2019-02-04 15:41:01 -08:00
committed by GitHub
parent 2fce771214
commit 84e0e08aec
3 changed files with 53 additions and 2 deletions

View File

@@ -30,6 +30,10 @@
}
},
"commands": [
{
"command": "notebook.command.analyzeNotebook",
"title": "%notebook.analyzeJupyterNotebook%"
},
{
"command": "notebook.command.new",
"title": "%notebook.command.new%",
@@ -61,6 +65,9 @@
],
"menus": {
"commandPalette": [
{
"command": "notebook.command.analyzeNotebook"
},
{
"command": "notebook.command.new"
},
@@ -86,6 +93,13 @@
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
"group": "1root@1"
}
],
"objectExplorer/item/context": [
{
"command": "notebook.command.analyzeNotebook",
"when": "nodeType=~/^mssqlCluster/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == mssqlCluster:file",
"group": "1notebook@1"
}
]
},
"keybindings": [