PublishWriteStream prints the data string to a stream on the front-end. This is either `StreamStdout` or `StreamStderr`.
(stream string, data string)
| 312 | // PublishWriteStream prints the data string to a stream on the front-end. This is |
| 313 | // either `StreamStdout` or `StreamStderr`. |
| 314 | func (receipt *msgReceipt) PublishWriteStream(stream string, data string) error { |
| 315 | return receipt.Publish("stream", |
| 316 | struct { |
| 317 | Stream string `json:"name"` |
| 318 | Data string `json:"text"` |
| 319 | }{ |
| 320 | Stream: stream, |
| 321 | Data: data, |
| 322 | }, |
| 323 | ) |
| 324 | } |
| 325 | |
| 326 | // JupyterStreamWriter is an `io.Writer` implementation that writes the data to the notebook |
| 327 | // front-end. |