dispatcher

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dispatcher routes messages to/from Jupyter. This handles the logic of the communication, as opposed to encoding/validation and connection details, which are handled by the kernel package.

Index

Constants

View Source
const MaxExecuteRequestQueue = 10000
View Source
const (
	Version = "0.1.0"
)

Variables

View Source
var BusyMessageTypes = []string{
	"execute_request", "inspect_request", "complete_request",
	"kernel_info_request",
}

BusyMessageTypes are messages that triggers setting the kernel status to busy while they are being handled.

Also, they are serialized, and not handled in parallel (if more than one request is sent before previous one finishes).

Functions

func HandleInspectRequest

func HandleInspectRequest(msg kernel.Message, goExec *goexec.State) error

HandleInspectRequest presents rich data (HTML?) with contextual information for the contents under the cursor.

func RunKernel

func RunKernel(k *kernel.Kernel, goExec *goexec.State)

RunKernel takes a connected kernel and dispatches the various inputs the appropriate handlers. It returns only when the kernel stops running.

Types

type OutErr

type OutErr struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL