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.

Enable reactive reference highlighting by default (#7483)

Trevor Manz51595c2adb4f
diff --git a/frontend/src/core/codemirror/cm.ts b/frontend/src/core/codemirror/cm.ts
index bd1b9f67cb..664d4d35d2 100644
--- a/frontend/src/core/codemirror/cm.ts
+++ b/frontend/src/core/codemirror/cm.ts
@@ -152,7 +152,7 @@ export const setupCodeMirror = (opts: CodeMirrorSetupOpts): Extension[] => {
// Reactive references highlighting
reactiveReferencesBundle(
cellId,
- displayConfig.reference_highlighting ?? false,
+ displayConfig.reference_highlighting ?? true,
),
];
};
diff --git a/frontend/src/core/config/__tests__/config-schema.test.ts b/frontend/src/core/config/__tests__/config-schema.test.ts
index 0e583f3fb3..fa2756795a 100644
--- a/frontend/src/core/config/__tests__/config-schema.test.ts
+++ b/frontend/src/core/config/__tests__/config-schema.test.ts
@@ -65,7 +65,7 @@ test("default UserConfig - empty", () => {
"default_table_max_columns": 50,
"default_table_page_size": 10,
"default_width": "medium",
- "reference_highlighting": false,
+ "reference_highlighting": true,
"theme": "light",
},
"experimental": {},
@@ -133,7 +133,7 @@ test("default UserConfig - one level", () => {
"default_table_max_columns": 50,
"default_table_page_size": 10,
"default_width": "medium",
- "reference_highlighting": false,
+ "reference_highlighting": true,
"theme": "light",
},
"experimental": {},
diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.ts
index 13fded6408..70accf4f3b 100644
--- a/frontend/src/core/config/config-schema.ts
+++ b/frontend/src/core/config/config-schema.ts
@@ -145,7 +145,7 @@ export const UserConfigSchema = z
return width;
}),
locale: z.string().nullable().optional(),
- reference_highlighting: z.boolean().prefault(false),
+ reference_highlighting: z.boolean().prefault(true),
})
.prefault({}),
package_management: z
diff --git a/marimo/_config/config.py b/marimo/_config/config.py
index fb49dcc7c9..e7f882c799 100644
--- a/marimo/_config/config.py
+++ b/marimo/_config/config.py
@@ -632,7 +632,7 @@ DEFAULT_CONFIG: MarimoConfig = {
"dataframes": "rich",
"default_table_page_size": 10,
"default_table_max_columns": 50,
- "reference_highlighting": False,
+ "reference_highlighting": True,
},
"formatting": {"line_length": 79},
"keymap": {"preset": "default", "overrides": {}},