Docs · API reference · Verso.Abstractions

CellDiffEntry Class#

A single cell's participation in a notebook diff.

public sealed class CellDiffEntry

Inheritance System.Object → CellDiffEntry

Remarks#

BaselineCell and CurrentCell carry full CellModel instances so consumers can render sources and outputs directly. When a diff result crosses a JSON-RPC boundary, Metadata values arrive as raw JSON elements rather than the primitive types produced by notebook deserialization; consumers should rely on the precomputed change flags on this entry instead of reading into cell metadata values.

Properties#

BaselineCell Property#

Gets or sets the baseline side of the cell, or null when Kind is Added.

public Verso.Abstractions.CellModel? BaselineCell { get; set; }

Property Value#

CellModel

BaselineIndex Property#

Gets or sets the cell's index in the baseline notebook, or null when Kind is Added.

public System.Nullable<int> BaselineIndex { get; set; }

Property Value#

System.Nullable<System.Int32>

CellMetadataChanged Property#

True when the cell metadata differs between the two sides.

public bool CellMetadataChanged { get; set; }

Property Value#

System.Boolean

CurrentCell Property#

Gets or sets the current side of the cell, or null when Kind is Removed.

public Verso.Abstractions.CellModel? CurrentCell { get; set; }

Property Value#

CellModel

CurrentIndex Property#

Gets or sets the cell's index in the current notebook, or null when Kind is Removed.

public System.Nullable<int> CurrentIndex { get; set; }

Property Value#

System.Nullable<System.Int32>

Kind Property#

Gets or sets how this cell differs between the two sides.

public Verso.Abstractions.CellDiffKind Kind { get; set; }

Property Value#

CellDiffKind

MatchedByContent Property#

True when the pairing came from content-based alignment rather than a matching cell id. Always true for baselines from formats without stable cell ids (e.g. Jupyter imports).

public bool MatchedByContent { get; set; }

Property Value#

System.Boolean

OutputsChanged Property#

True when the cell outputs differ between the two sides.

public bool OutputsChanged { get; set; }

Property Value#

System.Boolean

SourceChanged Property#

True when the cell source text differs between the two sides.

public bool SourceChanged { get; set; }

Property Value#

System.Boolean

TypeOrLanguageChanged Property#

True when the cell type or language differs between the two sides.

public bool TypeOrLanguageChanged { get; set; }

Property Value#

System.Boolean