OptionalinitialServiceManager: IManagerGet the current service manager. This proxies all calls to the underlying service manager.
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.
Proxy implementing ServiceManager.IManager interface.
Get the current service manager type.
Service manager type or 'unknown' if not created by factory.
Add a listener for service manager changes.
Callback to invoke when service manager changes.
Disposable to remove the listener.
Update to a local kernel service manager. Connects directly to VS Code Python environments via ZMQ.
Unique kernel identifier.
Kernel spec name (e.g., 'python3').
Base URL for kernel connection.
Update to a mock service manager (no execution). Convenience method using ServiceManagerFactory.
If true, skip dispose() to avoid API calls (for terminated remote runtimes).
Update to Pyodide service manager (browser-based Python).
OptionalpyodideUrl: stringOptional CDN URL for Pyodide.
Update to a remote service manager. Connects to standard Jupyter server via HTTP/WebSocket.
Base URL for the Jupyter server.
Authentication token.
Mutable service manager wrapper that maintains a stable reference While allowing the underlying service manager to be swapped.