Get Started

reactable is a Python library for interactively viewing DataFrames. It focuses on three things:

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

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(
    cars_93[["manufacturer", "model", "type", "price"]],
    default_page_size=5,
    searchable=True,
    filterable=True,
)

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(),
    default_page_size=5,
)

Extensive customization

See twitter demo for more