Skip to main content

Open-Source Strong Lensing

Project description

PyAutoLens-JAX: Open-Source Strong Lensing

Colab Documentation Status Tests Build Code Style: black JOSS Zenodo DOI arXiv Project Status: Active Python Versions PyPI Version

Installation Guide | readthedocs | Introduction on Colab | HowToLens

When two or more galaxies are aligned perfectly down our line-of-sight, the background galaxy appears multiple times.

This is called strong gravitational lensing and PyAutoLens makes it simple to model strong gravitational lenses, using JAX to accelerate lens modeling on GPUs.

🤖 AI-assisted use: you can also learn and drive PyAutoLens with AI — either a browser chat assistant (ChatGPT, Claude) pointed at autolens_assistant, or a fully agentic coding tool (Claude Code, Codex) that runs lens modeling end-to-end on your machine. See the Three Ways to Learn PyAutoLens section below.

Getting Started

The following links are useful for new starters:

Three Ways to Learn PyAutoLens

There are three ways to learn how to use PyAutoLens, which you can freely mix and match:

  1. Manual navigation — read the workspace guides yourself, starting from the new user guide and the start_here notebooks, which are organised by lens scale and dataset type.
  2. AI chat assistant — ask questions to a conversational AI assistant such as ChatGPT or Claude in the browser. Go to the autolens_assistant repository and copy the ready-to-use example prompt from its README into ChatGPT or Claude to get started. This is ideal for learning the API, working out how to perform a calculation, and creating end-to-end example Python scripts.
  3. Fully agentic AI — drive PyAutoLens end-to-end with an agentic coding tool such as Claude Code or Codex together with autolens_assistant. These can inspect your data, write and run scripts, and manage a lens-modeling project directly on your machine.

See autolens_assistant for more on the AI-assisted options (2 and 3).

Community & Support

Support for PyAutoLens is available via our Slack workspace, where the community shares updates, discusses gravitational lensing analysis, and helps troubleshoot problems.

Slack is invitation-only. If you'd like to join, please send an email requesting an invite.

For installation issues, bug reports, or feature requests, please raise an issue on the GitHub issues page.

HowToLens

For users less familiar with gravitational lensing, Bayesian inference and scientific analysis you may wish to read through the HowToLens lectures. These teach you the basic principles of gravitational lensing and Bayesian inference, with the content pitched at undergraduate level and above.

A complete overview of the lectures is provided on the HowToLens readthedocs page, and the notebooks themselves live in the PyAutoLabs/HowToLens repository.

Citations

Information on how to cite PyAutoLens in publications can be found on the citations page.

Contributing

Information on how to contribute to PyAutoLens can be found on the contributing page.

Hands on support for contributions is available via our Slack workspace, again please email to request an invite.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autolens-2026.7.15.1.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autolens-2026.7.15.1-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

Details for the file autolens-2026.7.15.1.tar.gz.

File metadata

  • Download URL: autolens-2026.7.15.1.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autolens-2026.7.15.1.tar.gz
Algorithm Hash digest
SHA256 1064aec855dea6dc83d2200b2fd3f38467be641c0b310cf9261d06b074fe95d8
MD5 c8e2c480435e42ea6d105ef64c414fc4
BLAKE2b-256 535c5cccaf8e66b388ea971b083923c2f984515d0c57362d0220cee8fc6efc68

See more details on using hashes here.

File details

Details for the file autolens-2026.7.15.1-py3-none-any.whl.

File metadata

  • Download URL: autolens-2026.7.15.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autolens-2026.7.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f6bd98193eba2e0adc540d2467e4cfc49da5e9b9971c4ea4e9e03e00c90713e
MD5 c9b008387be0ca641c4ddb474ee9dcee
BLAKE2b-256 1cbf866d7af474882ade5607f9692f123c868a4f895567604821c176e6faa4c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page