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.

add warning when styling and sorting together (#6225)

Shahmir Varqha97079cd733ae
diff --git a/marimo/_plugins/ui/_impl/table.py b/marimo/_plugins/ui/_impl/table.py
index 5a51c6e47e..ab98ab92f9 100644
--- a/marimo/_plugins/ui/_impl/table.py
+++ b/marimo/_plugins/ui/_impl/table.py
@@ -1245,6 +1245,11 @@ class table(
else:
total_rows = result.get_num_rows(force=True) or 0
+ if args.sort and self._style_cell:
+ LOGGER.warning(
+ "Cell styling is not correctly applied when table rows are sorted"
+ )
+
return SearchTableResponse(
data=clamp_rows_and_columns(result),
total_rows=total_rows,