mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Notebooks: Fix Notebook validation Error when opened in Jupyter (#14110)
* delete transient node for display data * add comment
This commit is contained in:
@@ -718,6 +718,10 @@ export class CellModel extends Disposable implements ICellModel {
|
|||||||
if (this._outputs.length > 0) {
|
if (this._outputs.length > 0) {
|
||||||
for (let i = 0; i < this._outputs.length; i++) {
|
for (let i = 0; i < this._outputs.length; i++) {
|
||||||
if (this._outputs[i].output_type === 'execute_result') {
|
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._outputs.splice(i, 0, this.rewriteOutputUrls(output));
|
||||||
this.fireOutputsChanged();
|
this.fireOutputsChanged();
|
||||||
added = true;
|
added = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user