createKotlinKernelConfig

fun createKotlinKernelConfig(ports: KernelPorts, signatureKey: String, scriptClasspath: List<File> = emptyList(), homeDir: File? = null, debugPort: Int? = null, clientType: String? = null): KernelConfig

Creates a configuration for the Kotlin Jupyter kernel.

Return

KernelConfig instance populated with the provided parameters and default kernel configuration values.

Parameters

ports

The mapping of Jupyter sockets to the corresponding ports, with the server opening the ports.

signatureKey

The signature key used for signing messages, adhering to Jupyter's wire protocol. See: https://jupyter-client.readthedocs.io/en/stable/messaging.html#wire-protocol https://jupyter-client.readthedocs.io/en/stable/kernels.html#connection-files

scriptClasspath

The list of JARs to be included in the initial script classpath.

homeDir

The home directory where libraries, descriptors, and their caches are stored.

debugPort

The port the kernel should listen on for the debugger, if not null.

clientType

The type of client that will connect to the kernel, if specified.