Skip to content

Notebooks: Rare Case when Notebook is Serialized Incorrectly #7080

@chlafreniere

Description

@chlafreniere

This occurs when the following is true:

  • One cell has multiple outputs, and one of the outputs has a string with an unmatched opening or closing "["
  • User either closes Azure Data Studio (without saving notebook) and re-opens Azure Data Studio again, OR user utilizes "Save As" functionality. Note: when using "Save", this issue does not reproduce itself, as it goes through a different codepath

Workarounds:

  • Save notebook (File->Save, or by using key combo)
  • Before using Save As, create a new cell anywhere in the notebook (this can be deleted after it's been created)
  • If notebook is saved incorrectly and cannot be opened, open .ipynb file in text editor. All data is still there, but it is saved in the wrong format. The last 4 lines of any notebook file should look like the following (except for execution_count, which is variable 😄):
            "execution_count": 0
        }
    ]
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions