kernelspecs

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: 8 Imported by: 0

Documentation

Overview

Package kernelspecs contains utilities for fetching the unified view of kernelspecs from multiple backends.

Index

Constants

View Source
const APIPath = "/api/kernelspecs"

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

Variables

This section is empty.

Functions

func CombinedKernelSpecs

func CombinedKernelSpecs(localBackend *backends.Backend, remoteBackend *backends.Backend) (*resources.KernelSpecs, error)

CombinedKernelSpecs takes a backend view of the kernelspecs for both local and remote backends, and returns the combined global view of all kernelspecs. In case there is failure parsing remote kernelspecs return locals if any. Always set a local kernel as default.

func Handler

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

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

func UnifiedView

UnifiedView takes the backend view of the kernelspec 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