PyAutoLens: Open-Source Strong Gravitational Lensing

James. W. Nightingale, Richard G. Hayes, Ashley Kelly, Aristeidis Amvrosiadis, Amy Etherington +12 more
6/2/2021
29 citations
astro-ph.IMastro-ph.GA

Official code: PyAutoLabs/autolens_workspace (28 stars, Jupyter Notebook, last commit 2026-11-14). Most starred: PyAutoLabs/PyAutoLens, a community implementation (189 stars, Python, MIT, last commit 2026-11-14, 6.8× the official stars). 1 more implementation below.

Abstract

Strong gravitational lensing, which can make a background source galaxy appears multiple times due to its light rays being deflected by the mass of one or more foreground lens galaxies, provides astronomers with a powerful tool to study dark matter, cosmology and the most distant Universe. PyAutoLens is an open-source Python 3.6+ package for strong gravitational lensing, with core features including fully automated strong lens modeling of galaxies and galaxy clusters, support for direct imaging and interferometer datasets and comprehensive tools for simulating samples of strong lenses.

Show full abstract

The API allows users to perform ray-tracing by using analytic light and mass profiles to build strong lens systems. Accompanying PyAutoLens is the autolens workspace (see https://github.com/Jammy2211/autolens_workspace), which includes example scripts, lens datasets and the HowToLens lectures in Jupyter notebook format which introduce non experts to strong lensing using PyAutoLens. Readers can try PyAutoLens right now by going to the introduction Jupyter notebook on Binder (see https://mybinder.org/v2/gh/Jammy2211/autolens_workspace/master) or checkout the readthedocs (see https://pyautolens.readthedocs.io/en/latest/) for a complete overview of PyAutoLens's features.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
PyAutoLabs/autolens_workspaceOfficial28Jupyter Notebook–2026-11-14
PyAutoLabs/PyAutoLensCommunity189PythonMIT2026-11-14

PyAutoLens examples, tutorials, and datasets

2818Jupyter Notebook, PythonMar 6, 20192 weeks ago
astronomygravitational-lensingpythontutorials
MIT

PyAutoLens: Open-Source Strong Gravitational Lensing

18939Python, TeXOct 1, 20172 weeks agoMIT
astronomyastrophysicsbayesian-inferencecosmologygalaxy+2 more

Similar Papers

Cite this paper

@article{nightingale2021pyautolens,
  title  = {PyAutoLens: Open-Source Strong Gravitational Lensing},
  author = {James. W. Nightingale and Richard G. Hayes and Ashley Kelly and Aristeidis Amvrosiadis and Amy Etherington and Qiuhan He and Nan Li and XiaoYue Cao and Jonathan Frawley and Shaun Cole and Andrea Enia and Carlos S. Frenk and David R. Harvey and Ran Li and Richard J. Massey and Mattia Negrello and Andrew Robertson},
  year   = {2021},
  eprint = {2106.01384},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01384}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.01384.svg)](https://codeofpaper.com/paper/2106.01384)

Discussion