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

Function registerPythonApi

src/standalone/api/pythonExtension/index.ts:8–15  ·  view source on GitHub ↗
(pythonApi: PythonApi, serviceContainer: IServiceContainer)

Source from the content-addressed store, hash-verified

6
7let registered = false;
8export function registerPythonApi(pythonApi: PythonApi, serviceContainer: IServiceContainer) {
9 if (registered) {
10 return;
11 }
12 registered = true;
13 const apiProvider = serviceContainer.get<IPythonApiProvider>(IPythonApiProvider);
14 apiProvider.setApi(pythonApi);
15}

Callers 1

buildApiFunction · 0.90

Calls 2

getMethod · 0.65
setApiMethod · 0.65

Tested by

no test coverage detected