Summary
Implement a max_rows parameter on the .app() method to handle large datasets gracefully.
Background
The warn_if_large_dataframe() logic was removed in preparation for a better approach to handling large datasets. Instead of just warning developers, we should provide a configurable way to limit displayed data.
Proposed Solution
- Add a
max_rows parameter to the .app() method
- Use
.head(max_rows) on filtered data before displaying
- Warn the developer (via console/logs) that not all data is shown in the app
- Provide a sensible message to the app user indicating that not all data is available (e.g., "Showing first N of M rows")
Implementation Notes
- This should be implemented after Polars and Ibis support has landed
- The
max_rows parameter should have a sensible default (e.g., 500 rows)
- The user-facing message should be clear but not alarming
Summary
Implement a
max_rowsparameter on the.app()method to handle large datasets gracefully.Background
The
warn_if_large_dataframe()logic was removed in preparation for a better approach to handling large datasets. Instead of just warning developers, we should provide a configurable way to limit displayed data.Proposed Solution
max_rowsparameter to the.app()method.head(max_rows)on filtered data before displayingImplementation Notes
max_rowsparameter should have a sensible default (e.g., 500 rows)