Skip to main content

Pandas and Polar DataFrames as interactive DataTables

Project description

ITables logo

CI codecov.io Pypi Conda Version pyversions Code style: black

This packages changes how Pandas and Polars DataFrames are rendered in Jupyter Notebooks. 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.

The itables package only depends on numpy, pandas and IPython which you must already have if you work with Pandas in Jupyter (add polars, pyarrow if you work with Polars DataFrames).

Documentation

Browse the documentation to see examples of Pandas or Polars DataFrames rendered as interactive DataTables.

Quick start

Install the itables package with either

pip install itables

or

conda install itables -c conda-forge

Activate the interactive mode for all series and dataframes with

from itables import init_notebook_mode

init_notebook_mode(all_interactive=True)

and then render any DataFrame as an interactive table that you can sort, search and explore: df

If you prefer to render only selected DataFrames as interactive tables, use itables.show to show just one Series or DataFrame as an interactive table: show

Since itables==1.0.0, the jQuery and DataTables libraries and CSS are injected in the notebook when you execute init_notebook_mode with its default argument connected=False. Thanks to this the interactive tables will work even without a connection to the internet.

If you prefer to load the libraries dynamically (and keep the notebook lighter), use connected=True when you execute init_notebook_mode.

Supported environments

itables has been tested in the following editors:

  • Jupyter Notebook
  • Jupyter Lab
  • Jupyter nbconvert (i.e. the tables are still interactive in the HTML export of a notebook)
  • Jupyter Book
  • Google Colab
  • VS Code (for both Jupyter Notebooks and Python scripts)
  • PyCharm (for Jupyter Notebooks)
  • Quarto
  • Shiny for Python

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itables-2.1.0rc1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

itables-2.1.0rc1-py3-none-any.whl (214.8 kB view details)

Uploaded Python 3

File details

Details for the file itables-2.1.0rc1.tar.gz.

File metadata

  • Download URL: itables-2.1.0rc1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for itables-2.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 35363c7e08a42cb4f25548cae24aa95184cb74f90aa4ec6db0cf111d07e5ae34
MD5 219c93ab839335f5321999eb7b2702f7
BLAKE2b-256 decf772f93bbd008c1cf2fed7e5dd58c6f4b94d5229c75b6a1633cc2e961dada

See more details on using hashes here.

File details

Details for the file itables-2.1.0rc1-py3-none-any.whl.

File metadata

  • Download URL: itables-2.1.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 214.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for itables-2.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec9bb2ef1580559a3dbc598748a3804272b3bf0b7fa9b8c9b66282c11bf55537
MD5 4b4f2b60513cc94c04420b148351e9cb
BLAKE2b-256 cb029fe21cce6ff334235bb5b3d47d667a8eee9d7d7ca7f6a0437b1c1df07477

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page