PublishExecutionInput publishes a status message notifying front-ends of what code is currently being executed.
(execCount int, code string)
| 226 | // PublishExecutionInput publishes a status message notifying front-ends of what code is |
| 227 | // currently being executed. |
| 228 | func (receipt *msgReceipt) PublishExecutionInput(execCount int, code string) error { |
| 229 | return receipt.Publish("execute_input", |
| 230 | struct { |
| 231 | ExecCount int `json:"execution_count"` |
| 232 | Code string `json:"code"` |
| 233 | }{ |
| 234 | ExecCount: execCount, |
| 235 | Code: code, |
| 236 | }, |
| 237 | ) |
| 238 | } |
| 239 | |
| 240 | func ensure(bundle MIMEMap) MIMEMap { |
| 241 | if bundle == nil { |
no test coverage detected