MCPcopy Index your code
hub / github.com/gopherdata/gophernotes / PublishWriteStream

Method PublishWriteStream

messages.go:314–324  ·  view source on GitHub ↗

PublishWriteStream prints the data string to a stream on the front-end. This is either `StreamStdout` or `StreamStderr`.

(stream string, data string)

Source from the content-addressed store, hash-verified

312// PublishWriteStream prints the data string to a stream on the front-end. This is
313// either `StreamStdout` or `StreamStderr`.
314func (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.

Callers 1

WriteMethod · 0.80

Calls 1

PublishMethod · 0.95

Tested by

no test coverage detected