Skip to content

Add numpy to EdgeDraw demo deps so the docs WASM embed works - #322

Merged
koaning merged 1 commit into
mainfrom
fix/edgedraw-demo-numpy-dep
Aug 10, 2026
Merged

Add numpy to EdgeDraw demo deps so the docs WASM embed works#322
koaning merged 1 commit into
mainfrom
fix/edgedraw-demo-numpy-dep

Conversation

@koaning

@koaning koaning commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Problem

The EdgeDraw reference docs page embeds a live marimo WASM (Pyodide) notebook — demos/edgedraw.py, loaded via docs/assets/javascripts/demo-embed.js. That notebook has a cell calling widget.get_adjacency_matrix(), and EdgeDraw.get_adjacency_matrix() does a runtime import numpy (wigglystuff/edge_draw.py). But the demo's PEP 723 # /// script dependency list omitted numpy, so the Pyodide sandbox never installed it and the cell broke with a numpy import error.

Change

Add numpy==2.4.3 to the demo's PEP 723 dependency block, placed between marimo and the wigglystuff pin to match the convention used by other demos (dimensions.py, cube_widget.py, …).

Verification

uv run marimo check demos/edgedraw.py passes.

🤖 Generated with Claude Code

The EdgeDraw reference page embeds demos/edgedraw.py as a marimo WASM
notebook. Its get_adjacency_matrix() cell imports numpy at runtime, but
numpy was missing from the PEP 723 dependency list, so the Pyodide
sandbox never installed it and the cell broke.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@koaning
koaning merged commit 47e4621 into main Aug 10, 2026
1 check passed
@koaning
koaning deleted the fix/edgedraw-demo-numpy-dep branch August 10, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant