Registry / web-framework / dash-table

dash-table

JSON →
library5.0.0pypypi✓ verified 25d ago

Dash DataTable (`dash.dash_table.DataTable`) is an interactive table component designed for viewing, editing, and exploring large datasets within Dash web applications. It is rendered with standard HTML <table> markup, making it accessible, responsive, and highly customizable. The `dash-table` PyPI package is currently at version 5.0.0, but the component is officially deprecated and slated for removal from the core Dash API in Dash 5.0 of the main `dash` package. Users are advised to migrate to `dash-ag-grid` for future development.

pip install dash-table
INSTALL
IMPORT
SIG · DASH-TABLE
D
dash-table
web-frameworkpythonv5.0.0
Install
4.9s avg
Import
1082ms
Disk
288MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 1.126s · 246.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 4.9s · import 1.038s · 317MB
288MB installed
● package 288MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DataTable
from dash import dash_table
from dash_table import DataTable

This quickstart demonstrates how to create a basic Dash application with a DataTable. It reads data from a CSV using pandas and displays it in an interactive table.

import dash from dash import dash_table, html import pandas as pd # Sample data (e.g., from a CSV) df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv') app = dash.Dash(__name__) app.layout = html.Div([ dash_table.DataTable( id='table-basic', columns=[{"name": i, "id": i} for i in df.columns], data=df.to_dict('records'), ) ]) if __name__ == '__main__': app.run_server(debug=True)
Debug
Known issues
breakingDash DataTable is officially deprecated and will be removed from the core Dash API in Dash 5.0. It is strongly recommended to migrate to `dash-ag-grid` for new and existing projects.
fix
Migrate your table implementations to `dash-ag-grid`. Install with `pip install dash-ag-grid` and refer to its documentation.
affects: All versions, specifically from Dash 5.0 onwards for the main Dash package
breakingSignificant API changes occurred in `dash-table` v4.0.0. Several properties were removed or renamed, such as `column.clearable`, `column.hidden`, `content_style` (replaced by `fill_width`), and `pagination_settings` (replaced by `page_current` and `page_size`).
fix
Consult the `dash-table` CHANGELOG or documentation for v4.0.0 migration guides to update property names and usage.
affects: 4.0.0 and later
gotchaWhen using pagination with tooltips, the DataTable may become unresponsive and generate errors upon hovering over cells.
fix
Check for known fixes or workarounds in the Plotly community forums or GitHub issues. If possible, upgrade to the latest stable versions of Dash and `dash-table` (or migrate to `dash-ag-grid`). Consider simplifying tooltip logic if the bug persists.
affects: Specific versions, reported in `dash` 1.21.0, `dash-table` 4.11.x, but may affect others.
gotchaFor callbacks interacting with the DataTable, ensuring correct return types for multiple outputs is crucial. For instance, a callback with two outputs must return a tuple (data, columns) not a single Div component.
fix
Always ensure the return value of a multi-output callback matches the expected tuple or list of values for the specified outputs.
affects: All versions
Upgrade
Version history
5.0.0latest on PyPI · released Mar 2, 2022
Audit
Dependencies
dashrequiredCore framework for building Dash applications.
pandasoptionalCommonly used for data manipulation and preparing data for the table.
Agent activity
24 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
dash-table — pip install dash-table · libregistry