OptionalinitialRuntime: RuntimeJSONOptional initial runtime to use
Runtime state and selection function
Switch to Pyodide kernel for offline execution. The MutableServiceManager reference stays stable - no component re-renders!
Select a runtime and update the underlying service manager. The MutableServiceManager reference stays stable - no component re-renders!
Hook to manage runtime selection and service manager lifecycle.
Uses MutableServiceManager to maintain a stable serviceManager reference, preventing Notebook2 from re-rendering when runtimes are switched. This is crucial for UX - prevents cell flickering and scroll position loss.