Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [0.3.1] - 2026-03-25

### Fixed
- Removed accidental `python-dotenv` and `umap-learn` core dependencies that were not used by any widget.

## [0.3.0] - 2026-03-24

### Changed
Expand All @@ -11,9 +16,6 @@ All notable changes to this project will be documented in this file.
- `Paint` canvas now respects the `width` and `height` traitlets instead of expanding to fill the host container.
- `Paint` with `init_image` now resizes the image to match target dimensions upfront, so `get_pil()` returns the correct resolution before the first stroke.

### Added
- New `HoverZoom` widget — hover over an image to see a magnified side panel, like product zoom on e-commerce sites.

## [0.2.40] - 2026-03-24

### Added
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ nav:
- AltairWidget: reference/altair-widget.md
- ApiDoc: reference/api-doc.md
- PlaySlider: reference/play-slider.md
- HoverZoom: reference/hover-zoom.md
- Utils: reference/utils.md
plugins:
- search
Expand Down
Binary file added mkdocs/assets/gallery/hoverzoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions mkdocs/reference/hover-zoom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# HoverZoom API

::: wigglystuff.hover_zoom.HoverZoom

## Synced traitlets

| Traitlet | Type | Notes |
| --- | --- | --- |
| `image` | `str` | Base64-encoded image data. |
| `zoom_factor` | `float` | Magnification level for the zoom panel. |
| `width` | `int` | Display width of the source image in pixels. |
| `height` | `int` | Display height in pixels (0 = auto). |
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wigglystuff"
version = "0.3.0"
version = "0.3.1"
description = "Collection of Anywidget Widgets"
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -18,8 +18,6 @@ dependencies = [
"drawdata",
"numpy",
"pillow",
"python-dotenv>=1.2.1",
"umap-learn>=0.5.11",
]

[project.optional-dependencies]
Expand Down
15 changes: 15 additions & 0 deletions tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,18 @@ def test_import_scatter_widget():

def test_import_three_widget():
from wigglystuff.three_widget import ThreeWidget


def test_no_unexpected_dependencies():
"""Guard against accidentally adding dependencies to pyproject.toml."""
import tomllib
from pathlib import Path

pyproject = Path(__file__).parent.parent / "pyproject.toml"
data = tomllib.loads(pyproject.read_text())
deps = {
d.split(">")[0].split("<")[0].split("=")[0].split("[")[0].strip()
for d in data["project"]["dependencies"]
}
allowed = {"anywidget", "drawdata", "numpy", "pillow"}
assert deps == allowed, f"Unexpected dependencies: {deps - allowed}"
126 changes: 1 addition & 125 deletions uv.lock

Large diffs are not rendered by default.

Loading