Optional_kernelBridge: IKernelBridgePrivate Readonly_Private Optional Readonly_Private Readonly_Private Readonly_Private_Handles HTTP REST API requests for local kernels. Provides mock responses for Jupyter REST API endpoints.
Private_Opens a local kernel proxy for ZMQ communication.
Closes a WebSocket connection or local kernel proxy by ID.
Extension message containing connection ID
Cleans up all WebSocket connections and local kernel proxies. Closes all active connections and clears the connection maps.
Forwards HTTP requests from webview to target server. For local kernels, intercepts and handles REST API calls. Handles method, headers, and body forwarding with response relay.
Extension message containing request details
Target webview panel for response
Opens a WebSocket connection for Jupyter kernel communication. For local kernels, creates a LocalKernelProxy instead. Sets up event handlers for open, message, close, and error events.
Extension message with WebSocket configuration
Target webview panel for event notifications
PrivatepostPosts a message to the webview.
Target webview panel
Message type identifier
Message payload
OptionalrequestIdOrId: stringOptional message ID for correlation (requestId for HTTP, id for WebSocket)
Sends a message to an existing WebSocket connection or local kernel proxy.
Extension message containing data to send
Handles network communications between webview and Jupyter servers. Manages WebSocket connections and HTTP request proxying for notebook operations. For local ZMQ kernels, uses LocalKernelProxy instead of real WebSockets.
Example