Ensure orig_nbformat is not written to ipynb file (#192359)

This commit is contained in:
Don Jayamanne
2023-09-07 12:20:07 +10:00
committed by GitHub
parent e71d562fd8
commit 9c17df54bd
2 changed files with 6 additions and 8 deletions
+2 -4
View File
@@ -24,7 +24,7 @@ type NotebookMetadata = {
pygments_lexer?: string;
[propName: string]: unknown;
};
orig_nbformat: number;
orig_nbformat?: number;
[propName: string]: unknown;
};
@@ -76,9 +76,7 @@ export function activate(context: vscode.ExtensionContext) {
data.metadata = {
custom: {
cells: [],
metadata: {
orig_nbformat: 4
},
metadata: {},
nbformat: 4,
nbformat_minor: 2
}