always serialize execution count (#4864)

This commit is contained in:
Chris LaFreniere
2019-04-05 11:34:10 -07:00
committed by GitHub
parent 818c0789ea
commit 657adafb7d

View File

@@ -420,7 +420,7 @@ export class CellModel implements ICellModel {
if (this._cellType === CellTypes.Code) {
cellJson.metadata.language = this._language,
cellJson.outputs = this._outputs;
cellJson.execution_count = this.executionCount;
cellJson.execution_count = this.executionCount ? this.executionCount : 0;
}
return cellJson as nb.ICellContents;
}