Package-level declarations

Types

Link copied to clipboard
@Serializable(with = CodeExecutionSerializer::class)
class CodeExecution(val code: Code)

Code snippet ready to be evaluated with kernel REPL

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Comm
Link copied to clipboard
typealias CommCloseCallback = (JsonObject) -> Unit
Link copied to clipboard
interface CommManager

Manages custom messages in the notebook, for more info see https://jupyter-client.readthedocs.io/en/latest/messaging.html#custom-messages

Link copied to clipboard
typealias CommMsgCallback = (JsonObject) -> Unit
Link copied to clipboard
typealias CommOpenCallback = (Comm, JsonObject) -> Unit
Link copied to clipboard
Link copied to clipboard
data class DescriptorVariables(val properties: List<Variable> = listOf(), val hasOrder: Boolean = false)
Link copied to clipboard
interface ExecutionHost

Used in ExecutionCallback to get KotlinKernelHost context

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Base class for library integration with Jupyter Kernel via DSL Derive from this class and pass registration callback into constructor

Link copied to clipboard

Jupyter connection socket types. You can find information about each Jupyter socket type here: https://jupyter-client.readthedocs.io/en/stable/messaging.html#introduction

Link copied to clipboard
@Serializable(with = KernelRepositorySerializer::class)
data class KernelRepository(val path: String, val username: String? = null, val password: String? = null) : VariablesSubstitutionAware<KernelRepository> , Comparable<KernelRepository>
Link copied to clipboard

Declaration of LibraryDefinition implementor

Link copied to clipboard

Entity inside library that may be instantiated to an object of type T

Link copied to clipboard
Link copied to clipboard
@Serializable
data class LibrariesScanResult(val definitions: List<LibrariesDefinitionDeclaration> = emptyList(), val producers: List<LibrariesProducerDeclaration> = emptyList())

Serialized form of this class instance is a correct content of KOTLIN_JUPYTER_LIBRARIES_FILE_NAME file, and vice versa.

Link copied to clipboard
Link copied to clipboard

Library definition represents "library" concept in Kotlin kernel.

Link copied to clipboard

Trivial implementation of LibraryDefinition - simple container.

Link copied to clipboard

LibraryDefinitionProducer may produce several library definitions. You may want produce or not produce definitions based on kernel, Kotlin or JRE version, or some other info provided by Notebook

Link copied to clipboard
data class LibraryReference(val info: LibraryResolutionInfo, val name: String? = null) : LibraryCacheable
Link copied to clipboard

Implementations of this class provide information on how the libraries should be resolved. Different implementations of LibraryResolver use this information for adjusting the resolution process. Resolution info is encoded by a part of a LibraryReference that goes after @ character

Link copied to clipboard
class LibraryResolutionRequest(val reference: LibraryReference, val arguments: List<Variable>, val definition: LibraryDefinition)
Link copied to clipboard
@Serializable
data class LibraryResource(val bundles: List<ResourceFallbacksBundle>, val type: ResourceType, val name: String) : VariablesSubstitutionAware<LibraryResource>
Link copied to clipboard
interface RawMessage

Raw Jupyter message.

Link copied to clipboard
Link copied to clipboard

Callback for messages of type messageType coming to a certain socket If messageType is null, callback is called for any message

Link copied to clipboard
Link copied to clipboard
@Serializable
data class ResourceLocation(val path: String, val type: ResourcePathType) : VariablesSubstitutionAware<ResourceLocation>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class Variable(val name: String, val value: String, val ignored: Boolean = false)
Link copied to clipboard

VariablesSubstitutionAware provides interface for variables substitution.

Properties

Link copied to clipboard

Name of file in KOTLIN_JUPYTER_RESOURCES_PATH containing information about library definitions and providers inside JAR

Link copied to clipboard

Path for all Kotlin Jupyter related stuff in library JARs

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Builds an instance of LibraryDefinition. Build action receives LibraryDefinitionImpl as an explicit argument because of problems with names clashing that may arise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> Comm.onData(crossinline action: (T) -> Unit): CommMsgCallback
Link copied to clipboard

Construct raw message callback

Link copied to clipboard

Build a resource tree using ResourcesBuilder. The builder allows to construct js and css bundles. Each bundle could contain multiple files or urls. Each of those could contain multiple fallback paths (for example if URL not found, local resource is used.

Link copied to clipboard
inline fun <T> Comm.sendData(data: T)

Send an object. data should be serializable to JSON object (generally it means that the corresponding class should be marked with @Serializable)