Package-level declarations

Types

Link copied to clipboard
class AbortJupyterResponse(val stdErr: String?, val metadata: EvaluatedSnippetMetadata? = null) : JupyterResponse
Link copied to clipboard
@Serializable
abstract class AbstractMessageContent : MessageContent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
class ClearOutputReply(val wait: Boolean) : AbstractMessageContent
Link copied to clipboard
@Serializable
class Comm(val targetName: String)
Link copied to clipboard
@Serializable
class CommClose(val commId: String, val data: JsonObject = Json.EMPTY) : AbstractMessageContent
Link copied to clipboard
@Serializable
class CommInfoReply(val comms: Map<String, Comm>) : AbstractMessageContent
Link copied to clipboard
@Serializable
class CommInfoRequest(val targetName: String? = null) : AbstractMessageContent
Link copied to clipboard
@Serializable
class CommMsg(val commId: String, val data: JsonObject = Json.EMPTY) : AbstractMessageContent
Link copied to clipboard
@Serializable
class CommOpen(val commId: String, val targetName: String, val data: JsonObject = Json.EMPTY) : AbstractMessageContent
Link copied to clipboard
@Serializable
open class CompleteErrorReply(val name: String, val value: String, val traceback: List<String>) : MessageReplyContent
Link copied to clipboard
@Serializable
class CompleteReply(val matches: List<String>, val cursorStart: Int, val cursorEnd: Int, val paragraph: Paragraph, val metadata: CompleteReply.Metadata) : OkReply
Link copied to clipboard
@Serializable
class CompleteRequest(val code: String, val cursorPos: Int) : AbstractMessageContent
Link copied to clipboard
@Serializable(with = ConnectReplySerializer::class)
class ConnectReply(val ports: JsonObject) : AbstractMessageContent
Link copied to clipboard
object ConnectReplySerializer : KSerializer<ConnectReply>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object DetailsLevelSerializer : KSerializer<DetailLevel>
Link copied to clipboard
@Serializable
class DisplayDataResponse(val data: JsonElement? = null, val metadata: JsonElement? = null, val transient: JsonElement? = null) : AbstractMessageContent
Link copied to clipboard
class ErrorJupyterResponse(val stdErr: String?, val exception: ReplException? = null, val metadata: EvaluatedSnippetMetadata? = null) : JupyterResponse
Link copied to clipboard
Link copied to clipboard
@Serializable
class ExecuteErrorReply(val executionCount: ExecutionCount, val name: String, val value: String, val traceback: List<String>, val additionalInfo: JsonObject) : MessageReplyContent, ExecuteReply
Link copied to clipboard
@Serializable(with = ExecuteReplySerializer::class)
sealed interface ExecuteReply : MessageContent
Link copied to clipboard
@Serializable
data class ExecuteReplyMetadata(val dependenciesMet: Boolean = true, val engine: String, val status: MessageStatus, val startedTime: String, val evalMetadata: EvaluatedSnippetMetadata?)
Link copied to clipboard
object ExecuteReplySerializer : KSerializer<ExecuteReply>
Link copied to clipboard
@Serializable
data class ExecuteRequest(val code: String, val silent: Boolean = false, val storeHistory: Boolean = true, val userExpressions: Map<String, String> = mapOf(), val userVariables: List<String> = listOf(), val allowStdin: Boolean = true, val stopOnError: Boolean = true) : AbstractMessageContent
Link copied to clipboard
@Serializable
class ExecuteSuccessReply(val executionCount: ExecutionCount, val payload: List<Payload> = listOf(), val userExpressions: Map<String, JsonElement> = mapOf(), val additionalInfo: JsonObject? = null) : MessageReplyContent, ExecuteReply
Link copied to clipboard
@Serializable
value class ExecutionCount(val value: Int)

Typesafe wrapper for execution counts created by ExecutionCounter.

Link copied to clipboard
class ExecutionCounter(initialValue: Int)

Class responsible for tracking the execution count that is sent from the kernel to the client for all execution requests. It should be sent back to the client in execute_reply and execute_input messages.

Link copied to clipboard
@Serializable
class ExecutionInputReply(val code: String, val executionCount: ExecutionCount) : AbstractMessageContent
Link copied to clipboard
@Serializable
class ExecutionResultMessage(val data: JsonElement, val metadata: JsonElement, val executionCount: ExecutionCount) : AbstractMessageContent
Link copied to clipboard
@Serializable
class HelpLink(val text: String, val url: String)
Link copied to clipboard
@Serializable
class HistoryReply(val history: List<String>) : AbstractMessageContent
Link copied to clipboard
@Serializable
class HistoryRequest(val output: Boolean, val raw: Boolean, val hist_access_type: String, val session: Int? = null, val start: Int? = null, val stop: Int? = null, val n: Int? = null, val pattern: String? = null, val unique: Boolean? = null) : AbstractMessageContent
Link copied to clipboard
open class IdeCompatibleMessageRequestProcessor(rawIncomingMessage: RawMessage, messageFactoryProvider: MessageFactoryProvider, val socketManager: JupyterBaseSockets, commManager: CommManagerInternal, executor: JupyterExecutor, executionCounter: ExecutionCounter, loggerFactory: KernelLoggerFactory, repl: ReplForJupyter) : AbstractMessageRequestProcessor, JupyterCommunicationFacility
Link copied to clipboard
@Serializable
class InputReply(val value: String) : AbstractMessageContent
Link copied to clipboard
@Serializable
class InputRequest(val prompt: String, val password: Boolean = false) : AbstractMessageContent
Link copied to clipboard
@Serializable
class InspectReply(val found: Boolean, val data: JsonObject = Json.EMPTY, val metadata: JsonObject = Json.EMPTY) : OkReply
Link copied to clipboard
@Serializable
class InspectRequest(val code: String, val cursorPos: Int, val detailLevel: DetailLevel) : AbstractMessageContent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
class IsCompleteReply(val status: String, val indent: String? = null) : AbstractMessageContent
Link copied to clipboard
@Serializable
class IsCompleteRequest(val code: String) : AbstractMessageContent
Link copied to clipboard

Interface describing the sockets available in a Jupyter Kernel.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface JupyterResponse
Link copied to clipboard

Interface responsible for controlling the lifecycle of kernel sockets.

Link copied to clipboard
@Serializable
class KernelInfoReply(val protocolVersion: String, val implementation: String, val implementationVersion: String, val banner: String, val languageInfo: LanguageInfo, val helpLinks: List<HelpLink>) : OkReply
Link copied to clipboard
@Serializable
class KernelInfoReplyMetadata(val state: EvaluatedSnippetMetadata)
Link copied to clipboard
Link copied to clipboard
@Serializable
enum KernelStatus : Enum<KernelStatus>
Link copied to clipboard
@Serializable
class ListErrorsReply(val code: String, val errors: List<ScriptDiagnostic>) : AbstractMessageContent
Link copied to clipboard
@Serializable
class ListErrorsRequest(val code: String) : AbstractMessageContent
Link copied to clipboard
data class Message(val id: List<ByteArray> = listOf(), val data: MessageData = MessageData())
Link copied to clipboard
interface MessageContent
Link copied to clipboard
@Serializable(with = MessageDataSerializer::class)
data class MessageData(val header: MessageHeader? = null, val parentHeader: MessageHeader? = null, val metadata: JsonElement? = null, val content: MessageContent? = null)
Link copied to clipboard
object MessageDataSerializer : KSerializer<MessageData>
Link copied to clipboard
interface MessageFactory
Link copied to clipboard
Link copied to clipboard
interface MessageHandler
Link copied to clipboard
@Serializable
data class MessageHeader(val id: String, val type: MessageType, val session: String? = null, val username: String? = null, val version: String? = null, val date: String? = null)
Link copied to clipboard
@Serializable
class MessageMetadata
Link copied to clipboard
@Serializable
abstract class MessageReplyContent(val status: MessageStatus) : AbstractMessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
enum MessageStatus : Enum<MessageStatus>
Link copied to clipboard
Link copied to clipboard
object MessageTypeSerializer : KSerializer<MessageType>
Link copied to clipboard
Link copied to clipboard
class OkJupyterResponse(val displayResult: DisplayResult?, val metadata: EvaluatedSnippetMetadata? = null) : JupyterResponse
Link copied to clipboard
@Serializable
abstract class OkReply : MessageReplyContent
Link copied to clipboard
@Serializable
class OpenDebugPortReply(val port: Int?) : OkReply
Link copied to clipboard
@Serializable
class Paragraph(val cursor: Int, val text: String)
Link copied to clipboard
@Serializable
class Payload(val source: String)
Link copied to clipboard
Link copied to clipboard
object ScriptDiagnosticSerializer : KSerializer<ScriptDiagnostic>
Link copied to clipboard
@Serializable
class ShutdownRequest(val restart: Boolean) : AbstractMessageContent
Link copied to clipboard
@Serializable
class ShutdownResponse(val restart: Boolean) : AbstractMessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
class StatusReply(val status: KernelStatus) : AbstractMessageContent
Link copied to clipboard
@Serializable
class StreamResponse(val name: String, val text: String) : AbstractMessageContent

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun JupyterCommunicationFacility.getInput(prompt: String = DefaultPromptOptions.PROMPT, password: Boolean = DefaultPromptOptions.IS_PASSWORD): String
Link copied to clipboard
fun makeHeader(type: MessageType, sessionId: String?, username: String?): MessageHeader
fun makeHeader(msgType: MessageType? = null, incomingMsg: RawMessage? = null, sessionId: String? = null): MessageHeader
Link copied to clipboard
fun makeReplyMessage(msg: RawMessage, msgType: MessageType? = null, sessionId: String? = null, header: MessageHeader? = null, parentHeader: MessageHeader? = null, metadata: JsonElement? = null, content: MessageContent? = null): Message
Link copied to clipboard
fun MessageFactory.makeReplyMessage(msgType: MessageType? = null, sessionId: String? = null, header: MessageHeader? = null, parentHeader: MessageHeader? = null, metadata: JsonElement? = null, content: MessageContent? = null): Message
Link copied to clipboard
fun JupyterCommunicationFacility.sendError(response: JupyterResponse, executionCount: ExecutionCount, startedTime: String)

Send a message to clients of the type "error" as the response to an "execute_request" message that resulted in the REPL throwing an exception.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun JupyterCommunicationFacility.sendResponse(response: JupyterResponse, executionCount: ExecutionCount, startedTime: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toAbortErrorReply(executionCount: ExecutionCount, message: String?): ExecuteErrorReply
Link copied to clipboard

For errors in the user's REPL code, return a reply that includes the location in the user's code if it is available.

Link copied to clipboard
Link copied to clipboard