Documentation ¶
Overview ¶
Package kernelspecs contains utilities for fetching the unified view of kernelspecs from multiple backends.
Index ¶
- Constants
- func CombinedKernelSpecs(localBackend *backends.Backend, remoteBackend *backends.Backend) (*resources.KernelSpecs, error)
- func Handler(localBackend *backends.Backend, remoteBackend *backends.Backend) http.Handler
- func UnifiedView(ks *resources.KernelSpec, b *backends.Backend) *resources.KernelSpec
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 ¶
Handler returns an HTTP handler that implements the global, combined kernelspecs collection.
func UnifiedView ¶
func UnifiedView(ks *resources.KernelSpec, b *backends.Backend) *resources.KernelSpec
UnifiedView takes the backend view of the kernelspec and returns the global view.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.