This package changes how Pandas and Polars DataFrames are rendered in Python notebooks and applications.
With itables you can display your tables as interactive DataTables
that you can sort, paginate, scroll or filter.
ITables is just about how tables are displayed. You can turn it on and off in just two lines, with no other impact on your data workflow.
Since v2.6.0, ITables has no dependencies. It works out of the box with Pandas or Polars in Jupyter, Dash, Streamlit, or Marimo—you only need these packages installed. The Jupyter Widget is the sole exception, requiring anywidget. With Narwhals installed, ITables can also display DataFrames from other libraries like cuDF, Modin or PyArrow.
Quick Start#
Installation#
Install the itables package with either
pip install itables
or
conda install itables -c conda-forge
Notebook Mode#
In a Jupyter Notebook, activate the interactive mode for all your DataFrames with init_notebook_mode:
import itables
itables.init_notebook_mode()
After this, any Pandas or Polars DataFrame, or Series, is displayed as an interactive DataTables, which let you explore, filter or sort your data.
df = itables.sample_dfs.get_countries()
df
Loading ITables v2.6.2 from the init_notebook_mode cell...
(need help?) |
Read more about the different context where you can use ITables.
Binder#
You can run the examples above (or any other documentation page) directly on , without having to install anything on your end - just click on the rocket icon at the top of the page.
Licence#
ITables is developed by Marc Wouts on GitHub, under an MIT license.
ITables is a wrapper for datatables.net which is developed by Allan Jardine (sponsor him!), also under an MIT license.