WebGPU scatter widget for Jupyter — render millions of points, lasso, return row indices to Python.
Project description
Stipple
WebGPU scatter widget for Jupyter. Render millions of points, lasso a region, get the row indices back in Python.
from stipple import Stipple
w = Stipple(df, x="umap_0", y="umap_1", color="label")
w
# ... user lassos in widget ...
w.selected_indices # numpy array
Status
Pre-release. Gate ladder:
- G0 — Package skeleton + 100-point WebGPU render
- G1 — Arrow-over-comm transport (1M rows)
- G2 — 1M scatter with pan/zoom + discrete color
- G3 — 10M scale via chunked buffers
- G4 — Polygon lasso →
selected_indices - G5 — Example notebooks + cross-env test matrix
- G6 — Wheel packaging
Dev setup
uv sync --extra dev
cd js && npm install && npm run build && cd ..
uv run jupyter lab examples/
Architecture
- Python:
anywidget.AnyWidgetsubclass withtraitlets. Arrow IPC over the comm channel for tensor/DataFrame transport. - JS: Vite-built ESM bundle at
src/stipple/_static/index.js. WebGPU scatter pipeline with instanced unit quads.
See Projects/Research/Stipple/JUPYTER-WIDGET-RESEARCH.md in the upstream Thinking vault for design rationale.
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stipple-0.1.0.tar.gz.
File metadata
- Download URL: stipple-0.1.0.tar.gz
- Upload date:
- Size: 409.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30004a8503cd705e28a4d52e10395b19a9057eb1d9305f6d7751a9b2f70a2ded
|
|
| MD5 |
6417c6f01191570b9beec790cd5678de
|
|
| BLAKE2b-256 |
711a53deeb6100aa5bc8393762e8ef02d4abb76706aed37542edc04a1643610e
|
File details
Details for the file stipple-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stipple-0.1.0-py3-none-any.whl
- Upload date:
- Size: 225.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aedbbf299d73691c245668d9e7c9d63a57221a63d0a3cdcd346b48b32cd8c13d
|
|
| MD5 |
5927f39caf3af4359e7eee82242e3b35
|
|
| BLAKE2b-256 |
6bf4fa01aae2703a1af7defc0952d92523a238549b8b240fc833658285be8c68
|