Options
All
  • Public
  • Public/Protected
  • All
Menu

The default implementation of the IOutputAreaModel. The namespace for OutputAreaModel class statics.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _changed

_changed: Signal<this, IChangedArgs<IOutputModel>> = new Signal<this, IOutputAreaModel.ChangedArgs>(this)

Private _isDisposed

_isDisposed: boolean = false

Private _lastName

_lastName: "stdout" | "stderr"

Private _lastStream

_lastStream: string

Private _stateChanged

_stateChanged: Signal<IOutputAreaModel, void> = new Signal<IOutputAreaModel, void>(this)

Private _trusted

_trusted: boolean = false

Protected clearNext

clearNext: boolean = false

A flag that is set when we want to clear the output area after the next addition to it.

contentFactory

contentFactory: IContentFactory

The output content factory used by the model.

Protected list

An observable list containing the output models for this output area.

Static defaultContentFactory

defaultContentFactory: ContentFactory = new ContentFactory()

The default output model factory.

Accessors

changed

isDisposed

  • get isDisposed(): boolean

length

  • get length(): number

stateChanged

trusted

  • get trusted(): boolean
  • set trusted(value: boolean): void

Methods

Private _add

  • _add(value: nbformat.IOutput): number

Private _createItem

Private _onGenericChange

  • _onGenericChange(): void

Private _onListChanged

add

  • add(output: nbformat.IOutput): number
  • Add an output, which may be combined with previous output.

    Parameters

    • output: nbformat.IOutput

    Returns number

    The total number of outputs.

    Notes

    The output bundle is copied. Contiguous stream outputs of the same name are combined.

clear

  • clear(wait?: boolean): void
  • Clear all of the output.

    Parameters

    • Default value wait: boolean = false

      Delay clearing the output until the next message is added.

    Returns void

dispose

  • dispose(): void

fromJSON

  • fromJSON(values: nbformat.IOutput[]): void

get

set

  • set(index: number, value: nbformat.IOutput): void

Protected shouldCombine

  • shouldCombine(options: { lastModel: IOutputModel; value: nbformat.IOutput }): boolean
  • Whether a new value should be consolidated with the previous output.

    This will only be called if the minimal criteria of both being stream messages of the same type.

    Parameters

    Returns boolean

toJSON

  • toJSON(): nbformat.IOutput[]

Generated using TypeDoc