Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ You don’t need prior experience with lensing or Bayesian statistics. If you al

### Explore It Yourself

- **[Start in your browser](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/start_here.ipynb)** — open the series introduction in Google Colab without installing anything locally.
- **[Start in your browser](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/start_here.ipynb)** — open the series introduction in Google Colab without installing anything locally.
- **[Run it locally](https://pyautolens.readthedocs.io/en/latest/installation/overview.html)** — install PyAutoLens, download this repository and open the Jupyter notebooks in `notebooks/`.
- **[Read Chapter 1 with images](https://github.com/PyAutoLabs/HowToLens/blob/main/markdown/README.md)** — browse the available lectures and their results directly on GitHub.

Begin with [Tutorial 0: Visualization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb) to check your setup and learn how to display figures.
Begin with [Tutorial 0: Visualization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb) to check your setup and learn how to display figures.

### Study with AI

Expand Down
16 changes: 8 additions & 8 deletions notebooks/chapter_1_introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ In chapter 1, we introduce you to strong gravitational lensing and the core **Py

# Files

- [Tutorial 0: Visualization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb) — Setting up **PyAutoLens**'s visualization library.
- [Tutorial 0: Visualization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb) — Setting up **PyAutoLens**'s visualization library.

- [Tutorial 1: Grids And Galaxies](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb) — Using grids of (y,x) coordinates with galaxies made up of light profiles.
- [Tutorial 1: Grids And Galaxies](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb) — Using grids of (y,x) coordinates with galaxies made up of light profiles.

- [Tutorial 2: Ray Tracing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb) — Using grids, galaxies and mass profiles to perform strong lens ray-tracing.
- [Tutorial 2: Ray Tracing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb) — Using grids, galaxies and mass profiles to perform strong lens ray-tracing.

- [Tutorial 3: More Ray Tracing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb) — The optional mathematics of ray tracing, magnification, critical curves and time delays.
- [Tutorial 3: More Ray Tracing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb) — The optional mathematics of ray tracing, magnification, critical curves and time delays.

- [Tutorial 4: Point Sources](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb) — How lensing calculations change when the source galaxy is a point source (e.g. a quasar).
- [Tutorial 4: Point Sources](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb) — How lensing calculations change when the source galaxy is a point source (e.g. a quasar).

- [Tutorial 5: Data](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_5_data.ipynb) — Loading and inspecting telescope imaging data of a strong lens.
- [Tutorial 5: Data](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_5_data.ipynb) — Loading and inspecting telescope imaging data of a strong lens.

- [Tutorial 6: Fitting](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_6_fitting.ipynb) — Fitting data with a strong lens model.
- [Tutorial 6: Fitting](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_6_fitting.ipynb) — Fitting data with a strong lens model.

- [Tutorial 7: Summary](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_1_introduction/tutorial_7_summary.ipynb) — A summary of the chapter.
- [Tutorial 7: Summary](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_1_introduction/tutorial_7_summary.ipynb) — A summary of the chapter.
20 changes: 10 additions & 10 deletions notebooks/chapter_2_lens_modeling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ The six main lessons are followed by a summary. Results are covered in Tutorial

## Tutorials

- [Tutorial 1: Non-linear Search](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb) — Parameter space, priors and fitting a lens model.
- [Tutorial 1: Non-linear Search](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb) — Parameter space, priors and fitting a lens model.

- [Tutorial 2: Practicalities](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb) — Running fits and inspecting their results.
- [Tutorial 2: Practicalities](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb) — Running fits and inspecting their results.

- [Tutorial 3: Why Modeling Is Hard](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_3_why_modeling_is_hard.ipynb) — Local maxima, degeneracies and investigating difficult fits.
- [Tutorial 3: Why Modeling Is Hard](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_3_why_modeling_is_hard.ipynb) — Local maxima, degeneracies and investigating difficult fits.

- [Tutorial 4: Linear Profiles](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_4_linear_profiles.ipynb) — Solving light-profile intensities and using multi-Gaussian expansions.
- [Tutorial 4: Linear Profiles](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_4_linear_profiles.ipynb) — Solving light-profile intensities and using multi-Gaussian expansions.

- [Tutorial 5: Data and Likelihoods](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_5_data_and_likelihoods.ipynb) — Separating datasets, models and likelihoods, including positions penalties.
- [Tutorial 5: Data and Likelihoods](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_5_data_and_likelihoods.ipynb) — Separating datasets, models and likelihoods, including positions penalties.

- [Tutorial 6: Search Chaining](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_6_search_chaining.ipynb) — Combining searches and introducing the SLaM pipelines.
- [Tutorial 6: Search Chaining](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_6_search_chaining.ipynb) — Combining searches and introducing the SLaM pipelines.

- [Tutorial 7: Summary](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_2_lens_modeling/tutorial_7_summary.ipynb) — Bringing the chapter together and continuing to pixelized sources.
- [Tutorial 7: Summary](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_2_lens_modeling/tutorial_7_summary.ipynb) — Bringing the chapter together and continuing to pixelized sources.

## Optional reading

- [Need for Speed](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_need_for_speed.ipynb) — Computation, batching and estimating runtime.
- [Need for Speed](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_need_for_speed.ipynb) — Computation, batching and estimating runtime.

- [Historical Prior Passing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_prior_passing.ipynb) — An optional runnable example of prior passing using model_centred, a technique central to older workflows.
- [Historical Prior Passing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_prior_passing.ipynb) — An optional runnable example of prior passing using model_centred, a technique central to older workflows.

- [Searches](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_searches.ipynb) — Alternative non-linear search methods.
- [Searches](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_searches.ipynb) — Alternative non-linear search methods.
12 changes: 6 additions & 6 deletions notebooks/chapter_3_pixelizations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ This additional freedom also allows the reconstruction to fit noise. We therefor

MGE remains valuable, especially for foreground lens light and initial source fits. Pixelization is the next tool when the source requires more spatial freedom. We will learn how to use these tools together, inspect their reconstructions and recognise when their assumptions need revisiting.

- [Pixelizations, Mappers and Inversions](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb)
- [Bayesian Regularization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_2_bayesian_regularization.ipynb)
- [Borders](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_3_borders.ipynb)
- [Lens Modeling](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_4_lens_modeling.ipynb)
- [Pixelizations, Mappers and Inversions](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb)
- [Bayesian Regularization](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_2_bayesian_regularization.ipynb)
- [Borders](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_3_borders.ipynb)
- [Lens Modeling](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_4_lens_modeling.ipynb)

- [Fit Problems](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_5_fit_problems.ipynb)
- [Adaptive Reconstruction](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_3_pixelizations/tutorial_6_adaptive_reconstruction.ipynb)
- [Fit Problems](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_5_fit_problems.ipynb)
- [Adaptive Reconstruction](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_3_pixelizations/tutorial_6_adaptive_reconstruction.ipynb)
12 changes: 6 additions & 6 deletions notebooks/chapter_4_scaling_up_lensing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ scaling relations, group and cluster scales, and weak lensing.

# Files

- [Tutorial 1: Extra Galaxies](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb) — Handling nearby galaxies by scaling their light out of the fit or modeling them explicitly.
- [Tutorial 1: Extra Galaxies](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb) — Handling nearby galaxies by scaling their light out of the fit or modeling them explicitly.

- [Tutorial 2: Multi Galaxy](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb) — Modeling lenses with two or more co-dominant lens galaxies and the degeneracies this creates.
- [Tutorial 2: Multi Galaxy](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb) — Modeling lenses with two or more co-dominant lens galaxies and the degeneracies this creates.

- [Tutorial 3: Scaling Relation](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb) — Tying galaxy masses to their luminosities so model complexity stops growing with each galaxy.
- [Tutorial 3: Scaling Relation](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb) — Tying galaxy masses to their luminosities so model complexity stops growing with each galaxy.

- [Tutorial 4: Group Scale](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb) — Modeling group-scale lenses with truncated dPIE members and an optional group dark matter halo.
- [Tutorial 4: Group Scale](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb) — Modeling group-scale lenses with truncated dPIE members and an optional group dark matter halo.

- [Tutorial 5: Cluster Scale](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb) — Modeling cluster-scale lenses with point-source positions, the CSV interface and multi-plane ray tracing.
- [Tutorial 5: Cluster Scale](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb) — Modeling cluster-scale lenses with point-source positions, the CSV interface and multi-plane ray tracing.

- [Tutorial 6: Weak Lensing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb) — Fitting weak-lensing shear catalogues, which probe mass far beyond the strong lensing region.
- [Tutorial 6: Weak Lensing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb) — Fitting weak-lensing shear catalogues, which probe mass far beyond the strong lensing region.
6 changes: 3 additions & 3 deletions notebooks/chapter_optional/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

These lessons supplement the main chapters. Historical prior passing is retained for understanding older analyses.

- [Need for Speed](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_need_for_speed.ipynb) — Computation, batching and estimating runtime.
- [Need for Speed](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_need_for_speed.ipynb) — Computation, batching and estimating runtime.

- [Historical Prior Passing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_prior_passing.ipynb) — An optional runnable example of prior passing using model_centred, a technique central to older workflows.
- [Historical Prior Passing](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_prior_passing.ipynb) — An optional runnable example of prior passing using model_centred, a technique central to older workflows.

- [Searches](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/main/notebooks/chapter_optional/tutorial_searches.ipynb) — Alternative non-linear search methods.
- [Searches](https://colab.research.google.com/github/PyAutoLabs/HowToLens/blob/2026.11.22.1/notebooks/chapter_optional/tutorial_searches.ipynb) — Alternative non-linear search methods.
Loading
Loading