Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodeCellModel

An implementation of a code cell Model.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _onExecutionCountChanged

_onExecutionCountChanged: any

Handle a change to the execution count.

Private _outputs

_outputs: any

Readonly contentChanged

contentChanged: Signal<this, void>

A signal emitted when the state of the model changes.

Readonly id

id: string

The id for the cell.

Readonly modelDB

modelDB: IModelDB

The underlying IModelDB instance in which model data is stored.

Readonly stateChanged

stateChanged: Signal<this, IChangedArgs<any, any, string>>

A signal emitted when a model state changes.

Accessors

executionCount

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

    Returns nbformat.ExecutionCount

  • The execution count of the cell.

    Parameters

    • newValue: nbformat.ExecutionCount

    Returns any

isDisposed

  • get isDisposed(): boolean
  • Whether the model is disposed.

    Returns boolean

metadata

  • The metadata associated with the cell.

    Returns IObservableJSON

mimeType

  • get mimeType(): string
  • set mimeType(newValue: string): any
  • A mime type of the model.

    Returns string

  • A mime type of the model.

    Parameters

    • newValue: string

    Returns any

mimeTypeChanged

  • get mimeTypeChanged(): ISignal<this, IChangedArgs<string>>
  • A signal emitted when a mimetype changes.

    Returns ISignal<this, IChangedArgs<string>>

outputs

  • The cell outputs.

    Returns IOutputAreaModel

selections

  • Get the selections for the model.

    Returns IObservableMap<ITextSelection[]>

trusted

  • get trusted(): boolean
  • set trusted(newValue: boolean): any
  • Get the trusted state of the model.

    Returns boolean

  • Set the trusted state of the model.

    Parameters

    • newValue: boolean

    Returns any

type

  • get type(): "code"
  • The type of the cell.

    Returns "code"

value

  • Get the value of the model.

    Returns IObservableString

Methods

clearExecution

  • clearExecution(): void

dispose

  • dispose(): void

Protected onGenericChange

  • onGenericChange(): void
  • Handle a change to the observable value.

    Returns void

onTrustedChanged

toJSON

  • toJSON(): nbformat.ICodeCell

Generated using TypeDoc