from reactable import Reactable, embed_css
from reactable.data import cars_93
# Note that currently this function is required
# to put css into notebooks.
embed_css()
Reactable("manufacturer", "model", "type", "price"]],
cars_93[[=5,
default_page_size=True,
searchable=True,
filterable )
Get Started
reactable
is a Python library for interactively viewing DataFrames. It focuses on three things:
- Quick options for sorting, searching, and paginating data.
- Working with many DataFrame inputs, including pandas and polars.
- Extensive customization of table structure, value formats, and targeted styles.
Note
This library is a port of the R library reactable
by Greg Lin. It uses the same underlying javascript code, has adapted its beautiful examples and documentation.
Install
pip install reactable
Previewing DataFrames
Using with pandas and polars
reactable built-in datasets, like cars_93
don’t any DataFrame libraries. They include methods like .to_pandas()
and .to_polars()
, to quickly try out reactable with your preferred DataFrame tool.
from reactable import Reactable, embed_css
from reactable.data import cars_93
Reactable(
cars_93.to_polars(),=5,
default_page_size )