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

Function installPythonExtension

src/test/standardTest.node.ts:95–104  ·  view source on GitHub ↗

* Smoke tests & tests running in VSCode require Python extension to be installed.

(vscodeExecutablePath: string, extensionsDir: string, platform: DownloadPlatform)

Source from the content-addressed store, hash-verified

93 * Smoke tests & tests running in VSCode require Python extension to be installed.
94 */
95async function installPythonExtension(vscodeExecutablePath: string, extensionsDir: string, platform: DownloadPlatform) {
96 if (!requiresPythonExtensionToBeInstalled() || isNotebookPerfTestWithoutJupyter()) {
97 console.info('Python Extension not required');
98 return;
99 }
100 const cliPath = resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, platform);
101 await installExtension(PythonExtension, cliPath, extensionsDir, ['--pre-release']);
102
103 // Note: Renderer extension is now integrated, no need to install it separately
104}
105
106// Make sure renderers is there too as we'll use it for widget tests
107async function installExtension(extension: string, cliPath: string, extensionsDir: string, args: string[] = []) {

Callers 1

startFunction · 0.85

Calls 4

installExtensionFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected