Metadata-Version: 2.4
Name: stipple
Version: 0.1.0
Summary: WebGPU scatter widget for Jupyter — render millions of points, lasso, return row indices to Python.
Project-URL: Homepage, https://github.com/smledbetter/stipple
Project-URL: Repository, https://github.com/smledbetter/stipple
Project-URL: Issues, https://github.com/smledbetter/stipple/issues
Project-URL: Changelog, https://github.com/smledbetter/stipple/releases
Author-email: Steve Ledbetter <smledbetter@gmail.com>
License: MIT
License-File: LICENSE
Keywords: anywidget,jupyter,lasso,ml,scatter,visualization,webgpu
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Jupyter
Classifier: Framework :: Jupyter :: JupyterLab
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.10
Requires-Dist: anywidget>=0.9
Requires-Dist: numpy>=1.26
Requires-Dist: pyarrow>=15
Requires-Dist: traitlets>=5
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == 'dev'
Requires-Dist: ipywidgets>=8.1; extra == 'dev'
Requires-Dist: jupyterlab>=4.4; extra == 'dev'
Requires-Dist: pandas>=2.2; extra == 'dev'
Requires-Dist: playwright>=1.55; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Requires-Dist: twine>=5.0; extra == 'dev'
Provides-Extra: examples
Requires-Dist: ipywidgets>=8.1; extra == 'examples'
Requires-Dist: jupyterlab>=4.4; extra == 'examples'
Requires-Dist: scikit-learn>=1.4; extra == 'examples'
Description-Content-Type: text/markdown

# Stipple

WebGPU scatter widget for Jupyter. Render millions of points, lasso a region, get the row indices back in Python.

```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:

- [x] **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

```bash
uv sync --extra dev
cd js && npm install && npm run build && cd ..
uv run jupyter lab examples/
```

## Architecture

- Python: `anywidget.AnyWidget` subclass with `traitlets`. 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
