Interface IOutputModel

The interface for an output model.

interface IOutputModel {
    changed: ISignal<IOutputModel, void>;
    data: ReadonlyPartialJSONObject;
    executionCount: ExecutionCount;
    metadata: ReadonlyPartialJSONObject;
    streamText?: IObservableString;
    trusted: boolean;
    type: string;
    dispose(): void;
    setData(options: IRenderMime.IMimeModel.ISetDataOptions): void;
    toJSON(): IOutput;
}

Hierarchy (View Summary)

Implemented by

Properties

changed: ISignal<IOutputModel, void>

A signal emitted when the output model changes.

The data associated with the model.

executionCount: ExecutionCount

The execution count of the model.

The metadata associated with the model.

Among others, it can include an attribute named fragment that stores a URI fragment identifier for the MIME resource.

streamText?: IObservableString

The observable text, present when the output type is set to "stream".

trusted: boolean

Whether the output is trusted.

type: string

The output type.

Methods