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

Function getCachedVersion

src/platform/interpreter/helpers.ts:214–223  ·  view source on GitHub ↗
(interpreter?: { id?: string })

Source from the content-addressed store, hash-verified

212}
213
214export function getCachedVersion(interpreter?: { id?: string }) {
215 if (!interpreter?.id) {
216 return;
217 }
218 if (!pythonApi) {
219 throw new WrappedError('Python API not initialized', undefined, 'pythonAPINotInitialized');
220 }
221 const cachedInfo = pythonApi.environments.known.find((i) => i.id === interpreter.id);
222 return cachedInfo?.version;
223}
224
225export function getCachedEnvironments() {
226 if (!pythonApi) {

Calls

no outgoing calls

Tested by

no test coverage detected