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

Function createPythonInterpreter

src/test/utils/interpreters.ts:15–22  ·  view source on GitHub ↗
(info?: Partial<PythonEnvironment>)

Source from the content-addressed store, hash-verified

13 * @returns {PythonEnvironment}
14 */
15export function createPythonInterpreter(info?: Partial<PythonEnvironment>): PythonEnvironment {
16 const rnd = new Date().getTime().toString();
17 return {
18 id: Uri.file(`somePath${rnd}`).path,
19 uri: Uri.file(`somePath${rnd}`),
20 ...(info || {})
21 };
22}

Calls 2

toStringMethod · 0.65
fileMethod · 0.45

Tested by

no test coverage detected