| 31 | import { instance } from 'ts-mockito'; |
| 32 | |
| 33 | export async function openNotebook(ipynbFile: vscode.Uri) { |
| 34 | logger.info(`Opening notebook ${getFilePath(ipynbFile)}`); |
| 35 | const notebook = await vscode.workspace.openNotebookDocument(ipynbFile); |
| 36 | const editor = await vscode.window.showNotebookDocument(notebook); |
| 37 | logger.info(`Opened notebook ${getFilePath(ipynbFile)}`); |
| 38 | return { notebook, editor }; |
| 39 | } |
| 40 | |
| 41 | // The default base set of data science settings to use |
| 42 | export function defaultDataScienceSettings(): IJupyterSettings { |