diff --git a/src/sql/workbench/services/notebook/browser/models/cell.ts b/src/sql/workbench/services/notebook/browser/models/cell.ts index e9fe3ca827..d713f8f5ca 100644 --- a/src/sql/workbench/services/notebook/browser/models/cell.ts +++ b/src/sql/workbench/services/notebook/browser/models/cell.ts @@ -718,6 +718,10 @@ export class CellModel extends Disposable implements ICellModel { if (this._outputs.length > 0) { for (let i = 0; i < this._outputs.length; i++) { if (this._outputs[i].output_type === 'execute_result') { + // Deletes transient node in the serialized JSON + // "Optional transient data introduced in 5.1. Information not to be persisted to a notebook or other documents." + // (https://jupyter-client.readthedocs.io/en/stable/messaging.html) + delete output['transient']; this._outputs.splice(i, 0, this.rewriteOutputUrls(output)); this.fireOutputsChanged(); added = true;