Versions in this module Expand all Collapse all v1 v1.5.0 Oct 12, 2026 Changes in this version + func FormatOutputs(outputs []Output) string + type Channel struct + func (ch *Channel) Close() + func (ch *Channel) Execute(ctx context.Context, code string, timeout time.Duration) ([]Output, error) + type Client struct + func New(cfg Config) *Client + func (c *Client) GetKernel(ctx context.Context, id string) (*KernelInfo, error) + func (c *Client) InterruptKernel(ctx context.Context, id string) error + func (c *Client) ListKernels(ctx context.Context) ([]KernelInfo, error) + func (c *Client) OpenChannel(ctx context.Context, kernelID string) (*Channel, error) + func (c *Client) RestartKernel(ctx context.Context, id string) error + func (c *Client) StartKernel(ctx context.Context, name string) (*KernelInfo, error) + func (c *Client) StopKernel(ctx context.Context, id string) error + type Config struct + ServerURL string + Token string + func DefaultConfig() Config + func MergeConfig(base Config, serverURL, token string) Config + type KernelInfo struct + Connections int + ExecutionState string + ID string + LastActivity string + Name string + type Output struct + Data map[string]any + ImageJPEG string + ImagePNG string + Name string + Text string + Type string + func (o Output) ImageData() string + func (o Output) ImageMIME() string + func (o Output) IsImage() bool