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.
pip install itablesVerified import paths — ran on the pinned version, not inferred.
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.
Adjust `itables.options.maxBytes` or `itables.options.maxRows` to manage data size. Filter your DataFrame in Python before displaying if interactivity is only needed for a subset of data.
Ensure `connected` is set appropriately for your environment. Re-execute all relevant notebook cells after changing this option.
Perform data modifications directly using Pandas or Polars operations in Python code.
Ensure `pandas` (or `polars`), `numpy`, and `IPython` are installed in your environment if you intend to use ITables with their features. If using the Jupyter Widget, `anywidget` is also required.
First, ensure your Jupyter notebook is 'trusted' (usually an option under 'File' or in the command palette). Then, make sure to execute `import itables; itables.init_notebook_mode()` at the beginning of your notebook. If you used `init_notebook_mode(connected=True)`, verify that you have an active internet connection.
Install the `itables` package using either `pip install itables` or `conda install itables -c conda-forge` in your active Python environment.
Update your Jupyter Lab installation to the latest version. If the issue persists, try restarting your Jupyter kernel and reloading the page, or reinstalling the Jupyter Lab extension for itables if applicable.