Initial implementation for VSCode Notebook support (#17885)

This commit is contained in:
Cory Rivera
2022-01-03 15:59:37 -08:00
committed by GitHub
parent af5575a852
commit 2ecc3d35ca
45 changed files with 1533 additions and 260 deletions

View File

@@ -93,3 +93,7 @@ export const SQL_PROVIDER = 'MSSQL';
export const USER = 'user';
export const AUTHTYPE = 'authenticationType';
export const INTEGRATED_AUTH = 'integrated';
// The version of the notebook file format that we support
export const NBFORMAT = 4;
export const NBFORMAT_MINOR = 2;

View File

@@ -885,8 +885,8 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
name: 'python3'
}
},
nbformat: 4,
nbformat_minor: 5
nbformat: constants.NBFORMAT,
nbformat_minor: constants.NBFORMAT_MINOR
};
await vscode.commands.executeCommand('_notebook.command.new', {

View File

@@ -147,8 +147,8 @@ describe('Notebook URI Handler', function (): void {
display_name: 'Python 3'
}
},
nbformat: 4,
nbformat_minor: 5
nbformat: constants.NBFORMAT,
nbformat_minor: constants.NBFORMAT_MINOR
};
await fs.writeFile(notebookPath, JSON.stringify(notebookContent));