Skip to content

Tutorials: videos drawn by htfa.animate_network and hyp.plot(panels=, animate=True) - #151

Merged
jeremymanning merged 2 commits into
masterfrom
toolbox-apis
Nov 23, 2026
Merged

jeremymanning merged 2 commits into
masterfrom
toolbox-apis

Conversation

@jeremymanning

Copy link
Copy Markdown
Member

Not to be merged before htfa 0.2.0 and hypertools 1.2.0 are on PyPI: the tutorials extra requires them from this change on, and the two notebooks' Colab install cell would fail earlier.

What changes

  • docs/tutorial/htfa_network_animations.ipynb: each video is drawn by one htfa.animate_network call (htfa 0.2.0: per-node colors, per-frame radii and edges, two views, caption, legend rows, parallel frames) in place of the notebook's own scene, frame composition and retry code. No private htfa names remain. Code cells: 381 to 277 lines.
  • docs/tutorial/trajectories.ipynb: each video is drawn by one hyp.plot(..., panels=..., animate=True, chemtrails=True, caption=...) call (hypertools 1.2); the notebook then enlarges the caption and adds a title. The filter for hypertools' messages is removed (hyp.plot repeats the backend UserWarning on every call, including show=False with ax= hypertools#290, #292 are fixed in 1.2).
  • setup.py: tutorials extra needs htfa[plot,brain3d]>=0.2.0 and hypertools>=1.2. CHANGELOG.md, CLAUDE.md updated.

What looks different

  • htfa videos: same nodes, colors, radii, edges, views, captions and legend entries; the brains are 8 to 10% larger in the frame; in the videos of orders 1 and 2 the edge legend sits one row lower; files are 5 to 16% larger.
  • trajectories videos: the line up to the current sample faint and the last 30 samples solid, as before; no head marker, no thicker tail, no one-second hold (each video is one second shorter). The still figure and the thumbnail are pixel-identical.

Checks

  • Both notebooks executed top to bottom without error outputs in an environment with hypertools at tag v1.2.0 and htfa at commit 56cb1a1 (neither is on PyPI yet).
  • pytest -m "not slow": 2608 passed; doctests: 75 passed; tests/test_docs_tutorials.py: 60 passed; docs build with -W: clean.
  • Not verified: Colab (needs the two releases on PyPI); the htfa notebook's preview mode through the notebook itself.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL

jeremymanning and others added 2 commits November 22, 2026 20:45
…plot(panels=, animate=True) (hypertools 1.2)

htfa_network_animations: one animate_network call per video in place of the
notebook's scene, frame composition and retry code; no private htfa names.
trajectories: one hyp.plot call per video in place of the frame loop; the
filter for hypertools' messages is removed. The tutorials extra needs
htfa[plot,brain3d]>=0.2.0 and hypertools>=1.2.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL
…w and preset slow (htfa 0.2.0 release)

The notebook was run again with htfa 0.2.0 and hypertools 1.2.0 installed from PyPI.
Its stills no longer go through a one-frame movie, and the videos of orders 1 and 2
have the layout of the earlier videos again (brains and legend within 5 pixels).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL
@jeremymanning
jeremymanning marked this pull request as ready for review November 23, 2026 12:02
@jeremymanning
jeremymanning merged commit 18678f8 into master Nov 23, 2026
6 checks passed
@jeremymanning
jeremymanning deleted the toolbox-apis branch November 24, 2026 14:54
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