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.

Sort toml entries when writing config (#9686)

Jeremy Foxcroftcb1f41be1bc9
diff --git a/marimo/_config/manager.py b/marimo/_config/manager.py
index ba57b4da01..a36d54d31b 100644
--- a/marimo/_config/manager.py
+++ b/marimo/_config/manager.py
@@ -402,7 +402,7 @@ class UserConfigManager(MarimoConfigReader):
merged = merge_config(current_config, config)
with open(config_path, "w", encoding="utf-8") as f:
- tomlkit.dump(merged, f)
+ tomlkit.dump(merged, f, sort_keys=True)
return merge_default_config(merged)