Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: don't make cells stale after formatting code (#535)

Myles Scolnick58b393f93a48
diff --git a/frontend/src/core/codemirror/format.ts b/frontend/src/core/codemirror/format.ts
index cd7c2f9e8b..efd93f6f56 100644
--- a/frontend/src/core/codemirror/format.ts
+++ b/frontend/src/core/codemirror/format.ts
@@ -46,8 +46,8 @@ export async function formatEditorViews(
continue;
}
- updateEditorCodeFromPython(view, formattedCode);
updateCellCode({ cellId, code: formattedCode, formattingChange: true });
+ updateEditorCodeFromPython(view, formattedCode);
}
}