kernels

package
v0.0.0-...-94e1d31 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package kernels implements a unified view of the kernels in multiple backends

Index

Constants

View Source
const APIPath = "/api/kernels"

APIPath is the URL path to the kernels collection in the Jupyter REST API.

Variables

This section is empty.

Functions

func BackendView

func BackendView(k *resources.Kernel, bs []*backends.Backend) (*backends.Backend, *resources.Kernel, error)

BackendView takes the global view of the kernel and returns the backend view.

func Fetch

func Fetch(b *backends.Backend) ([]*resources.Kernel, error)

Fetch returns the list of kernels for the given backend.

func Handler

func Handler(localBackend *backends.Backend, remoteBackend *backends.Backend) http.Handler

Handler returns an HTTP handler that implements the global, combined kernels collection.

func UnifiedView

func UnifiedView(k *resources.Kernel, b *backends.Backend) *resources.Kernel

UnifiedView takes the backend view of the kernel and returns the global view.

Types

This section is empty.

Jump to

Keyboard shortcuts

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