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

    Mutable service manager wrapper that maintains a stable reference while allowing the underlying service manager to be swapped.

    Index

    Constructors

    Properties

    _listeners: (() => void)[] = []
    _serviceManager: IManager
    _subProxies: Map<string, unknown> = ...

    Accessors

    Methods

    • Create a proxy that forwards all property access to the current service manager. This allows the MutableServiceManager to be used as a drop-in replacement.

      IMPORTANT: For properties that are objects (like kernels, sessions, etc.), we need to return proxies as well, because SessionContext extracts these properties and holds onto them. Without proxies, SessionContext would keep references to the old mock service manager's kernels/sessions even after we swap to a real one.

      Returns IManager

    • Add a listener for service manager changes.

      Parameters

      • listener: () => void

        Callback to invoke when service manager changes

      Returns { dispose: () => void }

      Disposable to remove the listener

    • Update to a local kernel service manager. Connects directly to VS Code Python environments via ZMQ.

      Parameters

      • kernelId: string

        Unique kernel identifier

      • kernelName: string

        Kernel spec name (e.g., 'python3')

      • url: string

        Base URL for kernel connection

      Returns void

    • Update to Pyodide service manager (browser-based Python).

      Parameters

      • OptionalpyodideUrl: string

        Optional CDN URL for Pyodide

      Returns void

    • Update to a remote service manager. Connects to standard Jupyter server via HTTP/WebSocket.

      Parameters

      • url: string

        Base URL for the Jupyter server

      • token: string

        Authentication token

      Returns void