Pandas and Polar DataFrames as interactive DataTables
Project description
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:
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:
Since ITables v1.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 works in all the usual Jupyter Notebook environments, including Jupyter Notebook, Jupyter Lab, Jupyter nbconvert (i.e. the tables are still interactive in the HTML export of a notebook), Jupyter Book, Google Colab and Kaggle.
You can also use ITables in Quarto HTML documents, and in RISE presentations.
ITables works well in VS Code, both in Jupyter Notebooks and in interactive Python sessions.
Last but not least, ITables is also available as
- a Jupyter Widget
- a Streamlit component,
- and it also works in Shiny applications.
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
Built Distribution
File details
Details for the file itables-2.2.4.tar.gz
.
File metadata
- Download URL: itables-2.2.4.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2810fab5cc67260f69c9fa7c6930bd7a39f92aaff2264dc4e914eaa7a005e5 |
|
MD5 | 679028f7fc6a2d221c2a9a2b20756f71 |
|
BLAKE2b-256 | 32ded088ee6e3b9c2a05e7565bcbb8b3138c6ee30e62b994df462afd4e77c03f |
Provenance
The following attestation bundles were made for itables-2.2.4.tar.gz
:
Publisher:
publish.yml
on mwouts/itables
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
itables-2.2.4.tar.gz
- Subject digest:
6d2810fab5cc67260f69c9fa7c6930bd7a39f92aaff2264dc4e914eaa7a005e5
- Sigstore transparency entry: 153956070
- Sigstore integration time:
- Permalink:
mwouts/itables@87ce14d5044c89f443580dc2006d1114627b0635
- Branch / Tag:
refs/tags/v2.2.4
- Owner: https://github.com/mwouts
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@87ce14d5044c89f443580dc2006d1114627b0635
- Trigger Event:
push
- Statement type:
File details
Details for the file itables-2.2.4-py3-none-any.whl
.
File metadata
- Download URL: itables-2.2.4-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94f0298a4778ac957eef1d0bf0ff6ebffd3c68c7faef741cc083c31c97316952 |
|
MD5 | 4d6eafd009948416359d8bbdb70c5fef |
|
BLAKE2b-256 | 00a3edfcffc33b9e23f5a5e87178c2ee7a882a6ec6654d0e0c96849cb88519f5 |
Provenance
The following attestation bundles were made for itables-2.2.4-py3-none-any.whl
:
Publisher:
publish.yml
on mwouts/itables
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
itables-2.2.4-py3-none-any.whl
- Subject digest:
94f0298a4778ac957eef1d0bf0ff6ebffd3c68c7faef741cc083c31c97316952
- Sigstore transparency entry: 153956071
- Sigstore integration time:
- Permalink:
mwouts/itables@87ce14d5044c89f443580dc2006d1114627b0635
- Branch / Tag:
refs/tags/v2.2.4
- Owner: https://github.com/mwouts
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@87ce14d5044c89f443580dc2006d1114627b0635
- Trigger Event:
push
- Statement type: