Documentation
¶
Overview ¶
Package notebooks keeps explicitly started Python kernels. It never reads a notebook's kernelspec, runs a cell on open, or writes the notebook back to disk.
Index ¶
- Constants
- type Error
- type Key
- type Manager
- func (m *Manager) Close()
- func (m *Manager) CloseConversation(conv string)
- func (m *Manager) Execute(ctx context.Context, key Key, code string) (out Result, err error)
- func (m *Manager) Interrupt(ctx context.Context, key Key) (State, error)
- func (m *Manager) Restart(ctx context.Context, key Key) (out State, err error)
- func (m *Manager) Shutdown(key Key) State
- func (m *Manager) Status(key Key) State
- type Result
- type State
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct{ Code, Message string }
Error is an actionable refusal, not a Python cell exception (those are outputs).
type Key ¶
type Key struct{ Owner, Conversation, Path string }
Key must be made by the caller after authorizing the owner and resolving Path to an accessible, canonical notebook in the conversation's writable folder.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager's lock protects only bookkeeping; interrupt/shutdown never wait for an execution lock. A failed or timed-out helper is discarded, not reused out of sync.
func (*Manager) Close ¶
func (m *Manager) Close()
Close waits for every started helper (including one still starting) to be reaped.