Add figure-only view (#figure/sampler)
Declare a figures entry in numbl-project.json so the deployed site exposes an
editor-less figure view that runs hitandrun_demo.m and shows the interactive
figure, with a link from the README. The full IDE stays at the root URL.
2 changed files+14−1
README.mdmodified+6−0View file
@@ -2,6 +2,12 @@
22
33 Runs in the browser via [numbl](https://numbl.org) — no install.
44
5+## 🎛 [Just the figure →](https://concept-collection.github.io/hitandrun-interactive/#figure/sampler)
6+
7+The figure-only view runs the sampler and drops you straight into the
8+interactive figure (it shows the run's output first, then the figure). The full
9+developer view — file tree, editable code, console — is below.
10+
511 ## ▶ [Open `hitandrun_demo.m`](hitandrun_demo.m) and click **Run**
612
713 A random 2D convex region is generated and `N` points are drawn uniformly from
numbl-project.jsonmodified+8−1View file
@@ -1,4 +1,11 @@
11 {
22 "title": "Hit-and-run sampling of a 2D convex region",
3- "entry": "README.md"
3+ "entry": "README.md",
4+ "figures": [
5+ {
6+ "id": "sampler",
7+ "name": "Hit-and-run sampler",
8+ "entry": "hitandrun_demo.m"
9+ }
10+ ]
411 }