Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitKernel ¶
Types ¶
type ExceptionMessage ¶
type Kernel ¶
type Kernel struct { ID string // contains filtered or unexported fields }
func CreateKernel ¶
func (*Kernel) ExecuteCode ¶
func (k *Kernel) ExecuteCode(code string) ([]ResultMessage, []ExceptionMessage, error)
type Message ¶
type Message struct { Buffers []interface{} `json:"buffers"` Channel string `json:"channel"` Content map[string]any `json:"content"` Header Header `json:"header"` Metadata struct{} `json:"metadata"` MsgID string `json:"msg_id"` MsgType MessageType `json:"msg_type"` ParentHeader Header `json:"parent_header"` }
type MessageType ¶
type MessageType string
const ( ExecuteRequest MessageType = "execute_request" ExecuteResult MessageType = "execute_result" ExecuteError MessageType = "error" ExecuteReply MessageType = "execute_reply" Stream MessageType = "stream" DisplayData MessageType = "display_data" Status MessageType = "status" )
type PreloadedKernels ¶
type PreloadedKernels struct {
// contains filtered or unexported fields
}
func NewPreloaded ¶
func NewPreloaded() (*PreloadedKernels, error)
func (*PreloadedKernels) Close ¶
func (k *PreloadedKernels) Close()
func (*PreloadedKernels) Get ¶
func (k *PreloadedKernels) Get() (*Kernel, error)
func (*PreloadedKernels) Reset ¶
func (k *PreloadedKernels) Reset(code string) error
type ResultMessage ¶
type ResultMessage struct { Data map[string]any MetaData map[string]any Stream *StreamMessage }
type StreamMessage ¶
Click to show internal directories.
Click to hide internal directories.