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.19.1.tar.gz (6.9 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.19.1-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autolens-2026.7.19.1.tar.gz
  • Upload date:
  • Size: 6.9 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.19.1.tar.gz
Algorithm Hash digest
SHA256 987abf0b5d3b30c88f665067d813367b8ca4d2f68d1b0ad41181399564a27ca0
MD5 3e5d97b40a60b8c89b34a7706e20db99
BLAKE2b-256 8d08ae57b4fcf15e59a2342ad96cfea7491beeeb021676bbfb96abb9c513a5de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autolens-2026.7.19.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.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc35c83205ab552663be4df0dd8cd99ebfe48699b54149b02e6136dd0fca4e5c
MD5 a9ab7236ac772213834d476dc50fcf1e
BLAKE2b-256 ee1c9cf77e7014b4b2c0d707ee7ba4e9b608558adb99a94bffd8daabf93e5096

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