MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / openNotebook

Function openNotebook

src/test/datascience/helpers.ts:33–39  ·  view source on GitHub ↗
(ipynbFile: vscode.Uri)

Source from the content-addressed store, hash-verified

31import { instance } from 'ts-mockito';
32
33export 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
42export function defaultDataScienceSettings(): IJupyterSettings {

Calls 3

getFilePathFunction · 0.90
openNotebookDocumentMethod · 0.80
infoMethod · 0.65