Notebooks: Adding Change Kernel API, 3 Integration Tests (#5287)

* Notebook change kernel

* Fix notifying of k change too many times add tests

* Fix broken unit test

* Deal with comment
This commit is contained in:
Chris LaFreniere
2019-06-03 14:49:40 -07:00
committed by GitHub
parent 4b6214c9a4
commit 8d70544374
10 changed files with 130 additions and 17 deletions

View File

@@ -134,6 +134,11 @@ export const pySpark3KernelMetadata = {
}
};
export const pySpark3KernelSpec = {
name: 'pyspark3',
display_name: 'PySpark3'
};
export const sqlKernelMetadata = {
'kernelspec': {
'name': 'SQL',
@@ -141,6 +146,11 @@ export const sqlKernelMetadata = {
}
};
export const sqlKernelSpec: azdata.nb.IKernelSpec = {
name: 'SQL',
display_name: 'SQL'
};
export const pythonKernelMetadata = {
'kernelspec': {
'name': 'python3',
@@ -148,6 +158,11 @@ export const pythonKernelMetadata = {
}
};
export const pythonKernelSpec: azdata.nb.IKernelSpec = {
name: 'python3',
display_name: 'Python 3'
};
export function writeNotebookToFile(pythonNotebook: azdata.nb.INotebookContents, testName: string): vscode.Uri {
let fileName = getFileName(testName);
let notebookContentString = JSON.stringify(pythonNotebook);