Skip to content

fix: requirements for tutorials 6/7 + revert workshop Colab stopgap - #66

Merged
Jammy2211 merged 4 commits into
mainfrom
feature/blackjax-reqs-stopgap-revert
Sep 15, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
feature/blackjax-reqs-stopgap-revert

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two things, both from #65.

Local install route. Tutorials 6 and 7 construct af.BlackJAXNUTS (tutorial 6 also af.Nautilus), but blackjax and nautilus-sampler live in PyAutoFit's optional extra, so pip install autofit never brought them and both tutorials died with ModuleNotFoundError at real settings. The PYAUTO_TEST_MODE=2 smoke gate bypasses the sampler, so CI stayed green. requirements.txt now lists both with PyAutoFit's own specifiers (nautilus-sampler==1.0.5, blackjax>=1.6.2), so the tutorial route installs the versions autofit is tested against.

Workshop stopgap reverted. The 2026-09-15 workshop is over, so the two Colab stopgaps merged for it are reverted with plain git revert -m 1 commits (no history rewrite):

The dependencies the stopgap installed are now installed by the Colab bootstrap itself: PyAutoNerves#168 added them to _SHARED_EXTRAS and is merged on main.

Merge condition

PyAutoNerves#168 is not yet on PyPI — the latest autonerves is 2026.9.15.1, which predates it. Merging this revert before a newer autonerves is released re-opens the Colab dependency gap on every notebook until that release lands. Merge once pip index versions autonerves shows a version newer than 2026.9.15.1, or with the explicit decision to accept the interim gap.

Scripts Changed

No scripts/ change. Files touched:

  • requirements.txt — added blackjax and nautilus-sampler.
  • README.md, start_here.ipynb, notebooks/**/*.ipynb (18) — restored byte-for-byte to the 2026.9.15.1 release content by the two reverts. Notebooks were not regenerated: the diff against the tag under notebooks/ and start_here.ipynb is empty, which is the stronger check for a pure revert.

Test Plan

  • git diff 2026.9.15.1 HEAD --stat shows only the pre-existing bd08343 docs change plus requirements.txt.
  • git diff 2026.9.15.1 HEAD -- notebooks/ start_here.ipynb is empty.
  • README badge counts match the tagged README (20 × blob/2026.9.15.1/, 1 × blob/main/).
  • Every reverted notebook parses as JSON.
  • Fresh venv: pip install -r requirements.txt then import blackjax, nautilus succeeds.
  • Smoke tests are not meaningful for this diff (pure revert to released notebooks plus a requirements line); CI's own smoke job runs on the PR regardless.

Sibling PRs for the same stopgap: HowToGalaxy (#77 revert) and HowToLens (#85 revert), linked from #65. /prm closes #65 once all three are merged.

Heart at ship time

STALE — release validation incomplete: no rehearsal for current source. Heart's freshness tier (an organism-scope evidence gap, not a finding against this branch); the ship gate treats it as passing and lists it here.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Jammy2211 and others added 3 commits September 15, 2026 19:12
…al-dependencies-frmvth"

This reverts commit f4bca40, reversing
changes made to 1b85e12.

The 2026-09-15 workshop is over. The 20 Colab badges return to release-tag
pinning: PyAutoHands' bump_colab_urls.sh re-pins only version-shaped tags, so
blob/main/ links would never have been updated by a release. start_here.ipynb
loses its stopgap install cell. The dependencies themselves are installed by
the Colab bootstrap from autonerves > 2026.9.15.1 (PyAutoNerves#168).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…-dep-stopgap"

This reverts commit 1b85e12, reversing
changes made to bd08343.

The 2026-09-15 workshop is over. Removes the Colab-only second pip install
(corner, optax, xxhash, blackjax --no-deps) from the 18 tutorial notebooks.
The Colab bootstrap installs these itself from autonerves > 2026.9.15.1
(PyAutoNerves#168).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Tutorials 6 and 7 construct af.BlackJAXNUTS (tutorial 6 also af.Nautilus).
Both packages sit in PyAutoFit's `optional` extra, so `pip install autofit`
never brought them and the tutorials died with ModuleNotFoundError at real
settings while the PYAUTO_TEST_MODE=2 smoke gate stayed green. Unpinned,
matching the file's existing convention; pinning literals here would recreate
the specifier drift PyAutoNerves#168 just fixed in _SHARED_EXTRAS.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PyAutoFit's `optional` extra pins nautilus-sampler==1.0.5 and floors
blackjax>=1.6.2; the unpinned lines resolved nautilus 1.0.6, a version
autofit is not tested against. Mirror the library's specifiers here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit c2462b0 into main Sep 15, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/blackjax-reqs-stopgap-revert branch September 15, 2026 18:37
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

fix: requirements for tutorials 6/7 + revert workshop Colab stopgap

1 participant