Repository navigation
Description
Overview
Move the HowToFit tutorial series out of autofit_workspace into a standalone
PyAutoLabs/HowToFit repository, mirroring the recent HowToLens extraction
(PyAutoLens PR #468 + autolens_workspace PRs, HowToLens bootstrap PR #1) and
HowToGalaxy extraction (PyAutoGalaxy PR #363 + autogalaxy_workspace PR #37,
HowToGalaxy bootstrap PR #1). Each lecture series becomes its own versioned,
tagged, independently-releasable repo rather than a subtree of the workspace,
and is now picked up automatically by /pre_build (see PyAutoBuild PR #53 which
registered HowToLens and HowToGalaxy).
Plan
- Scaffold a new
PyAutoLabs/HowToFitrepo with chapters 1-3 extracted out of
autofit_workspace/scripts/howtofitandautofit_workspace/notebooks/howtofit
(keep chapter_2_scientific_workflow as a deliberate empty stub, drop loose
intro/plantext files). Tag matching the current workspace version. - Delete
howtofit/fromautofit_workspaceand rewrite the 8 cross-references
that still point into it (welcome.py, cookbooks, both READMEs, CLAUDE.md,
top-level README). - Update PyAutoFit library docs and paper to frame HowToFit as a standalone
repo — 31 references across README, docs/howtofit/, docs/index.rst,
docs/general/workspace.rst, paper/paper.md, and the docs/api/ cross-refs. - Register HowToFit in PyAutoBuild alongside HowToLens and HowToGalaxy so
/pre_buildtags the new repo and bumps its Colab URLs on every release.
Detailed implementation plan
Affected Repositories
autofit_workspace(primary — umbrella + sub-2)PyAutoLabs/HowToFit(new, sub-1 target)PyAutoFit(sub-3 target)PyAutoBuild(follow-up target)
Work Classification
Workspace (umbrella lives on autofit_workspace; sub-tasks fan out to the library and build repos later).
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./autofit_workspace | main | clean |
| ./PyAutoFit | (not yet touched) | — |
| ./PyAutoBuild | main | clean |
| PyAutoLabs/HowToFit | (does not exist yet) | — |
Suggested branch (sub-1): feature/howtofit-bootstrap (on the new PyAutoLabs/HowToFit once created).
Worktree root: ~/Code/PyAutoLabs-wt/howtofit-bootstrap/
Starting state
Jammy2211/HowToFitexists on GitHub but is empty (no default branch). Sub-1
scaffoldsPyAutoLabs/HowToFitdirectly — no transfer step.autofit_workspace/version.txt=2026.4.13.6(matches HowToLens/HowToGalaxy
extraction tag).scripts/howtofit/contents:chapter_1_introduction/:start_here.py+ 5 tutorialschapter_2_scientific_workflow/: empty stub (README.rst +__init__.py)chapter_3_graphical_models/: 8 tutorials (including twotutorial_optional_*)- Loose text files
introandplan(legacy planning notes)
- No cross-module simulator dependencies — sub-2 is a clean delete (unlike
HowToGalaxy which had to relocatesersic.pyback toscripts/imaging/).
Sub-task 1 — bootstrap PyAutoLabs/HowToFit
- Create
PyAutoLabs/HowToFitrepo (public, empty init). - Copy
autofit_workspace/scripts/howtofit/*→ new reposcripts/(drop thehowtofit/segment). - Copy
autofit_workspace/notebooks/howtofit/*→ new reponotebooks/. - Keep
chapter_2_scientific_workflow/stub; drop looseintro/plan. - Add workspace-like scaffolding:
config/, root-levelstart_here.py,welcome.py,
version.txt(2026.4.13.6),requirements.txt,runtime.txt,smoke_tests.txt,
CLAUDE.md,README.rst,CITATIONS.rst,CODE_OF_CONDUCT.md,CONTRIBUTING.md,LICENSE. - Rewrite in-tutorial Colab URLs from
PyAutoLabs/autofit_workspace/blob/<old>/notebooks/howtofit/chapter_X/...
toPyAutoLabs/HowToFit/blob/2026.4.13.6/notebooks/chapter_X/.... - Tag
2026.4.13.6, push.
Sub-task 2 — remove howtofit from autofit_workspace
- Delete
scripts/howtofit/andnotebooks/howtofit/. - Update these files to point at the new repo:
welcome.py:79(description bullet)scripts/cookbooks/multiple_datasets.py:458(URL link)scripts/README.rst:6,notebooks/README.rst:6(bullet)CLAUDE.md:11(file layout)README.rst:15,46,65(various prose + toctree-style links)
- Drop howtofit-specific entries from
config/build/no_run.yaml,
config/build/env_vars.yamlif present. - New issue will be opened on
autofit_workspacewhen sub-2 starts.
Sub-task 3 — update PyAutoFit library docs/URLs
Rewrite every howtofit URL across:
README.rstdocs/index.rst(toctree stays local; only link refs change)docs/howtofit/*.rst(4 pages — bulk-sed the Colab URLs)docs/general/workspace.rstpaper/paper.mddocs/api/{searches,plot,priors,samples,analysis,database,model}.rst(cross-refs)docs/cookbooks/multiple_datasets.rstdocs/science_examples/astronomy.rstdocs/overview/statistical_methods.rstdocs/features/graphical.rst
Migration pattern:
PyAutoLabs/autofit_workspace/blob/<old>/notebooks/howtofit/chapter_X/tutorial_Y.ipynb
→ PyAutoLabs/HowToFit/blob/2026.4.13.6/notebooks/chapter_X/tutorial_Y.ipynb
New issue will be opened on PyAutoFit when sub-3 starts.
Follow-up — register HowToFit in PyAutoBuild
Piggybacks on PR #53 (HowToLens/HowToGalaxy registration). Add HowToFit/howtofit to:
pre_build.sh.github/workflows/release.yml(find_scripts,generate_notebooks,run_scriptsConfigure,run_notebooksConfigure,release_workspaces)autobuild/config/copy_files.yaml,autobuild/config/no_run.yamlautobuild/bump_colab_urls.shregexCLAUDE.mdworkspace table + bump_colab_urls description
Can be a standalone PR or ride with sub-3.
Key Files
autofit_workspace/scripts/howtofit/**— source material for sub-1, deleted in sub-2.autofit_workspace/welcome.py,README.rst,CLAUDE.md,scripts/README.rst,notebooks/README.rst,scripts/cookbooks/multiple_datasets.py— sub-2 prose updates.PyAutoFit/docs/howtofit/*.rst,PyAutoFit/README.rst,PyAutoFit/paper/paper.md,PyAutoFit/docs/**/*.rst— sub-3 URL rewrites.PyAutoBuild/pre_build.sh,.github/workflows/release.yml,autobuild/config/*.yaml,autobuild/bump_colab_urls.sh— follow-up registration.
Original Prompt
Click to expand starting prompt
$(cat /home/jammy/Code/PyAutoLabs/admin_jammy/prompt/autofit/howtofit.md)
Activity
Jammy2211 commentedon Apr 22, 2026
Sub-1 shipped — 2026-04-22
PR
What landed
Bootstrapped the new
PyAutoLabs/HowToFitrepo by transplantingautofit_workspace/scripts/howtofit/(chapter_1_introduction + chapter_2 stub + chapter_3_graphical_models + simulators) into a standalone repo, mirroring the HowToLens/HowToGalaxy pattern. Includes root files, CI workflows (smoke_tests.yml,url_check.yml), and a PyAutoFit-only config tree.Notable fix
Chapter 3 tutorials were silently broken against a fresh clone — they invoke
simulators.pybut thedataset_N/families they need are produced bysimulators_sample.py. Fixed by chain-runningsimulators_sample.pyfrom the end ofsimulators.pyviarunpy. This bug was previously masked inautofit_workspaceby committed sample datasets.Pending sub-tasks
howtofit/fromautofit_workspace+ update its ~8 cross-referenceshowtofitbuild target inPyAutoBuild/autobuild/config/so notebooks can be regenerated from scripts (parallel to the pending HowToLens/HowToGalaxy registration)Session notes
tutorial_5_results_and_samples.pyis excluded from smoke tests viaconfig/build/no_run.yamlwith aNEEDS_FIXmarker — it hits anIndexErrorin samples access, likely theInstanceInterpolatorbug inautofitfeatures/interpolate. Separate fix.autofit_workspace_developer/scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.pyreferences were intentionally preserved — that script still lives in the developer repo.PYAUTO_TEST_MODE=2; CI smoke (3.12 + 3.13) + url_check: all green on PR Update fit.py #1.Jammy2211 commentedon Apr 22, 2026
Sub-2 shipped — 2026-04-22
PR
What landed
Removed
scripts/howtofit/(38 files) andnotebooks/howtofit/(17 files) fromautofit_workspace. Updated 8 cross-reference files to point at the new standalone repository:welcome.py,scripts/features/graphical_models.py,scripts/overview/overview_3_statistical_methods.py— prose + URL rewritesREADME.rst,scripts/README.rst,notebooks/README.rst,CLAUDE.md— structure/bullet/link updatesconfig/build/no_run.yaml— dropped two now-orphaned skip entriesSmoke-tested locally (6/6 PASS); CI
url_checkgreen.Still pending
docs/howtofit/) + ~31 URL references topyautofit.readthedocs.io/.../howtofit/...scattered across ~10 files. This is the remaining external blocker — until it ships, the readthedocs URLs in the PyAutoFit library still render the removed howtofit content. Deferred intentionally to keep sub-2's diff tight.howtofitbuild target inPyAutoBuild/autobuild/config/soPyAutoLabs/HowToFitnotebooks regenerate from scripts (parallel to the pending HowToLens/HowToGalaxy registration).Notebook drift (minor, acceptable)
Three
.ipynbfiles inautofit_workspace/notebooks/still contain old HowToFit narrative text that mirrors the old.pyprose:notebooks/features/graphical_models.ipynb,notebooks/cookbooks/multiple_datasets.ipynb,notebooks/overview/overview_3_statistical_methods.ipynb. These will self-heal on the next/pre_buildrun which regenerates all notebooks from their.pycounterparts via PyAutoBuild'sgenerate.py. Per the "never edit.ipynbdirectly" workspace rule.Jammy2211 commentedon Apr 22, 2026
Sub-3 Shipped — 2026-04-22
PyAutoFit library-side updates for the HowToFit extraction are merged.
This removes the
docs/howtofit/chapter tree from the PyAutoFit readthedocs build and rewrites every lingeringreadthedocs.io/howtofit/…andautofit_workspace/…/howtofit/…URL to point at https://github.com/PyAutoLabs/HowToFit.Status of the umbrella extraction
howtofit/from autofit_workspace + cross-refs (autofit_workspace#39 MERGED 2026-04-22)pyautobuild-register: registerhowtofitbuild target in PyAutoBuild (pending)Only the PyAutoBuild registration remains before the extraction is fully wrapped up.
Jammy2211 commentedon Apr 22, 2026
Umbrella Complete — 2026-04-22
Sub-4 (pyautobuild-register) is merged: PyAutoLabs/PyAutoHands#55
Final state of the HowToFit extraction:
howtofit/from autofit_workspace + cross-refsdocs/howtofit/howtofitbuild target in PyAutoBuildHowToFit now lives at https://github.com/PyAutoLabs/HowToFit and is built, tested, Colab-URL-bumped, and released by the same machinery that handles HowToGalaxy / HowToLens. Next release workflow run will emit HowToFit artefacts for the first time.
Closing this umbrella.