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

Function selectDefaultController

src/test/datascience/notebook/helper.ts:617–621  ·  view source on GitHub ↗
(notebookEditor: NotebookEditor, timeout = defaultNotebookTestTimeout)

Source from the content-addressed store, hash-verified

615 : getActiveInterpreterKernelConnection();
616}
617export function selectDefaultController(notebookEditor: NotebookEditor, timeout = defaultNotebookTestTimeout) {
618 return IS_REMOTE_NATIVE_TEST() || isWeb()
619 ? selectPythonRemoteKernelConnectionForActiveInterpreter(notebookEditor, timeout)
620 : selectActiveInterpreterController(notebookEditor, timeout);
621}
622async function selectActiveInterpreterController(notebookEditor: NotebookEditor, timeout = defaultNotebookTestTimeout) {
623 const { controllerRegistration, interpreterService } = await getServices();
624

Tested by

no test coverage detected