ipywidgets wrapper around regular-table
Project description
An ipywidgets wrapper of regular-table for Jupyter.
Examples
Two Billion Rows
Click Events
Edit Events
Styling
Pandas Data Model
For interactive/streaming sorting/pivoting/aggregation, take a look at Perspective, Streaming pivot visualization via WebAssembly, which also leverages regular-table
.
Series
DataFrame
DataFrame - Row Pivots
DataFrame - Column Pivots
DataFrame - Pivot Table
Installation
You can install using pip
:
pip install ipyregulartable
Or if you use jupyterlab:
pip install ipyregulartable
jupyter labextension install @jupyter-widgets/jupyterlab-manager
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:
jupyter nbextension enable --py [--sys-prefix|--user|--system] ipyregulartable
Data Model
It is very easy to construct a custom data model. Just implement the abstract methods on the base DataModel
class.
class DataModel(with_metaclass(ABCMeta)):
@abstractmethod
def editable(self, x, y):
'''Given an (x,y) coordinate, return if its editable or not'''
@abstractmethod
def rows(self):
'''return total number of rows'''
@abstractmethod
def columns(self):
'''return total number of columns'''
@abstractmethod
def dataslice(self, x0, y0, x1, y1):
'''get slice of data from (x0, y0) to (x1, y1) inclusive'''
Any DataModel
object can be provided as the argument to RegularTableWidget
. Note that regular-table
may make probing calls of the form (0, 0, 0, 0) to assess data limits.
Development
See CONTRIBUTING.md for guidelines.
License
This software is licensed under the Apache 2.0 license. See the LICENSE and AUTHORS files for details.
Project details
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 ipyregulartable-0.2.1.tar.gz
.
File metadata
- Download URL: ipyregulartable-0.2.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a074a386139316c89ad1969f8225ca298688837182ddccb93498805ca5bb15 |
|
MD5 | b9c236f108d3b87f584f623085104b37 |
|
BLAKE2b-256 | 14f02b8f34a5a4e822eaad7f37db3d517f775e5479ecdbdc050104852ec39a9e |
File details
Details for the file ipyregulartable-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ipyregulartable-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02cb047219da5d7a974a56a1f8539538e305b6f34ccabfd7f9707b62cd331eb3 |
|
MD5 | 425e6dd82616b27472e0141ccbbedcac |
|
BLAKE2b-256 | d7b57955c2e5f3efec359690cb2160fec2aa9af94ce5f5f2160098e7bb6cd2ad |