JupyterServerRunner
interface JupyterServerRunner
Functions
Link copied to clipboard
Checks whether this runner can run the server on the given ports.
Link copied to clipboard
abstract fun run(config: KernelConfig, loggerFactory: KernelLoggerFactory, setup: (JupyterServerImplSockets) -> Iterable<Closeable>)
Opens sockets, runs setup and then runs the server, blocking the thread. The server is stopped when one of the callbacks (see JupyterServerImplSockets) throws InterruptedException. Closable resources returned from setup are closed on shutdown.
Link copied to clipboard
Tries to deserialize appropriate for this runner KernelPorts from the JSON fields from the config file (see KernelJupyterParams). Needs to be symmetric with KernelPorts.serialize implementation of the result. Returns null if the ports supported by this runner cannot be deserialized from the given JSON fields.