From bbf2c868e5b6adf228f9ef3250197fce70efd2b3 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 15 Sep 2026 08:01:31 +0000 Subject: [PATCH] fix: point Colab links at main and stopgap the start_here notebook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Colab badge and tutorial links in README.md all pointed at the release tag 2026.9.15.1. The lazy-dependency stopgap added in #63 landed on main only, so an attendee clicking a README link got the tagged notebook, which has no stopgap, and tutorial 5 still died with `No module named 'corner'` after its emcee search completed. The released autonerves (2026.9.15.1) is also still missing the four packages from its `_SHARED_EXTRAS` bootstrap list — PyAutoNerves#168 fixed that on main but has not been released — so the tagged notebooks have no other route to the dependencies. Repointing the links at main is the only change that reaches a workshop attendee today. main is the tagged release plus the #63 insertion and nothing else, so the notebooks are otherwise identical to the tag. Also adds the same stopgap to the root start_here.ipynb, which #63 missed (it only walked notebooks/). It runs no fits so it did not crash, but it is the notebook the top README badge opens. Revert both once autonerves > 2026.9.15.1 is on PyPI. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PGmwRWuiKbxf8PKpCJoA96 --- README.md | 40 ++++++++++++++++++++-------------------- start_here.ipynb | 14 ++++++++++++++ 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 885fd8c..3ada50f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # HowToFit -[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb) +[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb) -[Start Here on Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb) | +[Start Here on Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb) | [Installation Guide](https://pyautofit.readthedocs.io/en/latest/installation/overview.html) | [PyAutoFit readthedocs](https://pyautofit.readthedocs.io/en/latest/index.html) | [Browse Chapter 1 With Images](markdown/README.md) | @@ -78,27 +78,27 @@ output figures inline. Nothing runs and nothing installs — you just read it. T skimming a tutorial before running it, or for reading on a phone. Markdown pages currently exist only for the chapter 1 tutorials listed with a `markdown` link below; every other tutorial is Colab-only. -**[Start Here](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb)** — a one-page overview of the whole series. +**[Start Here](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb)** — a one-page overview of the whole series. - **[Chapter 1: Introduction](scripts/chapter_1_introduction/README.md)** — Models, likelihoods, non-linear searches, why modeling is hard, and how to interpret the results of a fit, ending with a short guide to building a scientific workflow. - - Start Here: HowToFit Lectures — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/start_here.ipynb) / [markdown](markdown/chapter_1_introduction/start_here.md)) - - Tutorial 1: Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_1_models.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_1_models.md)) - - Tutorial 2: Fitting Data — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_2_fitting_data.md)) - - Tutorial 3: Non Linear Search — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_3_non_linear_search.md)) - - Tutorial 4: Why Modeling Is Hard — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_4_why_modeling_is_hard.md)) - - Tutorial 5: Results and Samples — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_5_results_and_samples.md)) - - Tutorial 6: Gradients — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb)) - - Tutorial 7: The Details — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb)) - - Tutorial 8: Scientific Workflow — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_8_scientific_workflow.md)) - - Tutorial Optional: Bayesian Formalism — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb)) + - Start Here: HowToFit Lectures — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/start_here.ipynb) / [markdown](markdown/chapter_1_introduction/start_here.md)) + - Tutorial 1: Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_1_models.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_1_models.md)) + - Tutorial 2: Fitting Data — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_2_fitting_data.md)) + - Tutorial 3: Non Linear Search — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_3_non_linear_search.md)) + - Tutorial 4: Why Modeling Is Hard — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_4_why_modeling_is_hard.md)) + - Tutorial 5: Results and Samples — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_5_results_and_samples.md)) + - Tutorial 6: Gradients — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb)) + - Tutorial 7: The Details — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb)) + - Tutorial 8: Scientific Workflow — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_8_scientific_workflow.md)) + - Tutorial Optional: Bayesian Formalism — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb)) - **[Advanced Chapter: Graphical & Hierarchical Models](scripts/chapter_advanced/README.md)** — Fitting many datasets simultaneously with graphical models, hierarchical models, and Expectation Propagation. - - Tutorial 1: Individual Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb)) - - Tutorial 2: Graphical Model — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb)) - - Tutorial 3: Graphical Benefits — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb)) - - Tutorial 4: Hierarchical Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb)) - - Tutorial 5: Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb)) - - Tutorial Optional: Hierarchical Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb)) - - Tutorial Optional: Hierarchical Individual — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb)) + - Tutorial 1: Individual Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb)) + - Tutorial 2: Graphical Model — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb)) + - Tutorial 3: Graphical Benefits — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb)) + - Tutorial 4: Hierarchical Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb)) + - Tutorial 5: Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb)) + - Tutorial Optional: Hierarchical Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb)) + - Tutorial Optional: Hierarchical Individual — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb)) Model-fits run considerably faster on a GPU. In Colab, enable one via *Runtime* → *Change runtime type* → *Hardware accelerator* before running a notebook. diff --git a/start_here.ipynb b/start_here.ipynb index 0bd24bb..93cde91 100644 --- a/start_here.ipynb +++ b/start_here.ipynb @@ -86,6 +86,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")"