Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodeCellModel

An implementation of a code cell Model. The namespace for CodeCellModel statics.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _outputs

_outputs: IOutputAreaModel = null

contentChanged

contentChanged: Signal<this, void> = new Signal<this, void>(this)

A signal emitted when the state of the model changes.

id

id: string

The id for the cell.

isDisposed

isDisposed: boolean

Whether the model is disposed.

mimeType

mimeType: string

A mime type of the model.

mimeTypeChanged

mimeTypeChanged: ISignal<this, IChangedArgs<string>>

A signal emitted when a mimetype changes.

modelDB

modelDB: IModelDB

The underlying IModelDB instance in which model data is stored.

selections

selections: IObservableMap<ITextSelection[]>

Get the selections for the model.

stateChanged

stateChanged: Signal<this, IChangedArgs<any>> = new Signal<this, IChangedArgs<any>>(this)

A signal emitted when a model state changes.

value

value: IObservableString

Get the value of the model.

Static defaultContentFactory

defaultContentFactory: ContentFactory = new ContentFactory()

The shared ContentFactory instance.

Accessors

executionCount

  • get executionCount(): nbformat.ExecutionCount
  • set executionCount(newValue: nbformat.ExecutionCount): void
  • The execution count of the cell.

    Returns nbformat.ExecutionCount

  • The execution count of the cell.

    Parameters

    • newValue: nbformat.ExecutionCount

    Returns void

metadata

  • get metadata(): IObservableJSON

outputs

  • get outputs(): IOutputAreaModel
  • The cell outputs.

    Returns IOutputAreaModel

trusted

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

type

  • get type(): "code"

Methods

Private _onExecutionCountChanged

  • _onExecutionCountChanged(count: IObservableValue, args: IChangedArgs): void
  • Handle a change to the execution count.

    Parameters

    • count: IObservableValue
    • args: IChangedArgs

    Returns void

dispose

  • dispose(): void

Protected onGenericChange

  • onGenericChange(): void

onTrustedChanged

  • onTrustedChanged(trusted: IObservableValue, args: IChangedArgs): void

toJSON

  • toJSON(): ICodeCell

Generated using TypeDoc