Skip to content

DataTable: Feature request implement pagination #1637

@adampinky85

Description

@adampinky85

Hi team,

We're extensive users of Python Shiny and its such a great product! We have small feature request to enhance the existing DataTable:

We use shiny.render.DataTable to visual our various datasets. It appears the current design sends the entire dataframe data into the browser in a single websocket message. Where the dataframes are even moderately large with thousand of rows, it results in the browser visibly hanging. With large dataframes in the hundreds of thousands for rows, it often causes the browser to fail entirely.

We have implemented our own pagination mechanism using shiny.ui.input_selectize but this is less than ideal. It requires the user to select a page dropdown where previously users can use the mouse scroll. The existing shiny data grid summary, showing the row message, no longer aligns to the dataframe shape.

Many thanks!

Versions
Python: 3.12.5
shiny: 1.0.0
Operating System: Ubuntu 22.04.4 LTS

cc: @gshotwell and the dataframe epic: #1119

Metadata

Metadata

Assignees

No one assigned

    Labels

    data frameRelated to @render.data_frameenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions