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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Set default values for 'autosave' to 'after_delay' and 'autosave_delay' to 5000 in both frontend and MarimoConfig (#29)
Myles Scolnick3621ade12250
diff --git a/frontend/src/core/config.ts b/frontend/src/core/config.tsindex ca0a3174ac..8519c93f35 100644--- a/frontend/src/core/config.ts+++ b/frontend/src/core/config.ts@@ -7,12 +7,13 @@ export const UserConfigSchema = z.object({activate_on_typing: z.boolean(),}),save: z.object({- autosave: z.enum(["off", "after_delay"]),+ autosave: z.enum(["off", "after_delay"]).default("after_delay"),autosave_delay: z.number().nonnegative()// Ensure that the delay is at least 1 second- .transform((millis) => Math.max(millis, 1000)),+ .transform((millis) => Math.max(millis, 1000))+ .default(1000),}),});export type UserConfig = z.infer<typeof UserConfigSchema>;diff --git a/marimo/config/_config.py b/marimo/config/_config.pyindex 6acd164588..d16f583816 100644--- a/marimo/config/_config.py+++ b/marimo/config/_config.py@@ -75,7 +75,7 @@ class MarimoConfig(TypedDict, total=False):_DEFAULT_CONFIG: MarimoConfig = {"completion": {"activate_on_typing": True},- "save": {"autosave": "off", "autosave_delay": 1000},+ "save": {"autosave": "after_delay", "autosave_delay": 1000},}_USER_CONFIG: Optional[MarimoConfig] = None