Skip to content

Docs/notebook plotly#15

Merged
tkclam merged 5 commits into
mainfrom
docs/notebook-plotly
Jun 12, 2026
Merged

Docs/notebook plotly#15
tkclam merged 5 commits into
mainfrom
docs/notebook-plotly

Conversation

@tkclam

@tkclam tkclam commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

tkclam and others added 5 commits June 11, 2026 18:19
Make every plot in examples/pipeline_walkthrough.ipynb interactive so the
3D views (camera rig, triangulated pose) rotate/zoom and rendered cleanly
on the docs site. The 3D pose (step 11) is now a single interactive scene
instead of two fixed viewpoints.

- Shared cell-2 helpers: show() emits self-contained CDN HTML that renders
  in the notebook and on a static site; rgb()/img_uri()/add_image() draw
  image montages with JPEG data URIs and pixel-accurate, square axes so the
  vector skeleton/heatmap overlays line up.
- Image montages embed JPEG sources rather than Plotly raw-pixel z arrays,
  keeping the page at ~2 MB instead of ~16 MB.
- plotly added to the dev dependency group (notebook-only, like matplotlib,
  which bundle_adjustment.ipynb still uses).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Centralize figure styling in show() so every plot reads on both the light
and dark docs themes: transparent paper/plot backgrounds (the page theme
shows through), a mid-gray for all text and axis lines (no black-on-black),
3D scenes drop their opaque background panes (keeping faint gridlines), and
titles are forced to centre.

Also fix the visibility-mask figure, whose 38 point-name x-labels overlapped:
stack them vertically with a smaller font and auto-margin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add the Plotly/Jupyter example notebooks to the MkDocs site via
mkdocs-jupyter (execute: false, so the stored interactive outputs are
reused and the build needs no torch/jax/data). The notebooks are
symlinked into docs/examples/ and added to the nav; the docs workflow
now also triggers on examples/** changes.

Exclude examples/ and docs/examples/ notebooks from nbstripout so their
stored outputs (the interactive figures) survive commits.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tkclam tkclam merged commit 8d8e87d into main Jun 12, 2026
5 checks passed
@tkclam tkclam deleted the docs/notebook-plotly branch June 12, 2026 07:31
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