Datalayer VS Code Extension - v0.0.9
    Preparing search index...

    Manages Pyodide cache in local filesystem for native notebooks. Separate from browser IndexedDB cache used by webview notebooks.

    Index

    Constructors

    Properties

    _globalStoragePath: string

    Methods

    • Downloads a file from URL to local path.

      Parameters

      • url: string

        File URL

      • destPath: string

        Destination path

      Returns Promise<void>

    • Ensures Pyodide core files are cached locally. Downloads from CDN if not present.

      Parameters

      • version: string

        Pyodide version

      • Optionalprogress: Progress<{ increment?: number; message?: string }>

        Optional progress reporter

      Returns Promise<string>

      Path to local Pyodide directory

    • Preloads packages into local Pyodide cache. Must be called after ensurePyodideCore().

      Parameters

      • version: string

        Pyodide version

      • packages: string[]

        Package names to download

      • Optionalprogress: Progress<{ increment?: number; message?: string }>

        Optional progress reporter

      Returns Promise<{ failed: string[]; succeeded: string[] }>