Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISharedCodeCell

Implements an API for nbformat.ICodeCell.

Hierarchy

Implemented by

Index

Properties

cell_type

cell_type: "code"

The type of the cell.

Readonly changed

The changed signal.

execution_count

execution_count: number

The code cell's prompt number. Will be null if the cell has not been run.

Readonly isDisposed

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

Readonly isStandalone

isStandalone: boolean

Whether the cell is standalone or not.

If the cell is standalone. It cannot be inserted into a YNotebook because the Yjs model is already attached to an anonymous Y.Doc instance.

Methods

canRedo

  • canRedo(): boolean

canUndo

  • canUndo(): boolean

clearUndoHistory

  • clearUndoHistory(): void

clone

dispose

  • dispose(): void
  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

getId

  • getId(): string

getMetadata

getOutputs

  • getOutputs(): IOutput[]

getSource

  • getSource(): string

redo

  • redo(): void

setMetadata

setOutputs

  • setOutputs(outputs: IOutput[]): void

setSource

  • setSource(value: string): void

toJSON

  • toJSON(): IBaseCell

transact

  • transact(f: () => void): void

undo

  • undo(): void

updateOutputs

  • updateOutputs(start: number, end: number, outputs: IOutput[]): void

updateSource

  • updateSource(start: number, end: number, value?: string): void

Generated using TypeDoc