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

Function runCurrentFile

src/test/datascience/helpers.ts:186–192  ·  view source on GitHub ↗
(interactiveWindowProvider: IInteractiveWindowProvider, file: vscode.TextDocument)

Source from the content-addressed store, hash-verified

184}
185
186export async function runCurrentFile(interactiveWindowProvider: IInteractiveWindowProvider, file: vscode.TextDocument) {
187 await vscode.window.showTextDocument(file, vscode.ViewColumn.One);
188 const activeInteractiveWindow = (await interactiveWindowProvider.getOrCreate(file.uri)) as InteractiveWindow;
189 await waitForInteractiveWindow(activeInteractiveWindow);
190 await vscode.commands.executeCommand(Commands.RunAllCells, file.uri);
191 return activeInteractiveWindow;
192}
193
194export async function closeInteractiveWindow(interactiveWindow: IInteractiveWindow) {
195 if (interactiveWindow.notebookDocument) {

Callers 3

submitFromPythonFileFunction · 0.85
runNewPythonFileFunction · 0.85

Calls 4

waitForInteractiveWindowFunction · 0.85
showTextDocumentMethod · 0.80
getOrCreateMethod · 0.65
executeCommandMethod · 0.65

Tested by

no test coverage detected