PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in. Supports states "starting", "busy", and "idle".
(status string)
| 214 | // PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in. Supports |
| 215 | // states "starting", "busy", and "idle". |
| 216 | func (receipt *msgReceipt) PublishKernelStatus(status string) error { |
| 217 | return receipt.Publish("status", |
| 218 | struct { |
| 219 | ExecutionState string `json:"execution_state"` |
| 220 | }{ |
| 221 | ExecutionState: status, |
| 222 | }, |
| 223 | ) |
| 224 | } |
| 225 | |
| 226 | // PublishExecutionInput publishes a status message notifying front-ends of what code is |
| 227 | // currently being executed. |