ITables

2.7.3 · active · verified Sat Apr 11

ITables (Interactive Tables) is a Python package that transforms Pandas or Polars DataFrames into interactive DataTables, enhancing data exploration within Jupyter notebooks, VS Code, Google Colab, and various Python applications like Streamlit, Dash, and Shiny. It provides features such as sorting, pagination, scrolling, and filtering directly in the browser. The library is actively maintained, with frequent releases, and is currently at version 2.7.3.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install `itables`, initialize it for automatic interactive display of all Pandas DataFrames in a notebook, and then create and display a sample DataFrame.

import pandas as pd
import itables

# Activate interactive mode for all DataFrames
itables.init_notebook_mode(all_interactive=True)

# Create a sample DataFrame
data = {'col1': [1, 2, 3, 4, 5], 'col2': ['A', 'B', 'C', 'D', 'E']}
df = pd.DataFrame(data)

# Display the DataFrame (will be interactive automatically)
df

view raw JSON →