A 'stream' message on the 'iopub' channel.

See Streams.

interface IStreamMsg {
    buffers?: (ArrayBuffer | ArrayBufferView)[];
    channel: "iopub";
    content: {
        name: "stdout" | "stderr";
        text: string;
    };
    header: IHeader<"stream">;
    metadata: JSONObject;
    parent_header: IHeader<KernelMessage.MessageType> | Record<string, never>;
}

Hierarchy (view full)

Properties

buffers?: (ArrayBuffer | ArrayBufferView)[]

An optional list of binary buffers.

channel: "iopub"

The channel on which the message is transmitted.

content: {
    name: "stdout" | "stderr";
    text: string;
}

The content of the message.

Type declaration

  • name: "stdout" | "stderr"
  • text: string
header: IHeader<"stream">

The message header.

metadata: JSONObject

Metadata associated with the message.

parent_header: IHeader<KernelMessage.MessageType> | Record<string, never>

The parent message