From 74a34f9379c3e586fab4d3c5f20d2ec9d67bd22f Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 22 Jul 2026 13:23:21 +0100 Subject: [PATCH 1/2] docs: fix false 'JAX will also be installed' claim; sync __version__ to 2026.7.22.1 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Se4scqoA2XQ3UFbPBEo6JP --- autolens/__init__.py | 2 +- docs/installation/conda.md | 17 ++++++++++++++--- docs/installation/pip.md | 19 +++++++++++++++++-- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/autolens/__init__.py b/autolens/__init__.py index 19b7d518e..cf129a538 100644 --- a/autolens/__init__.py +++ b/autolens/__init__.py @@ -144,7 +144,7 @@ conf.instance.register(__file__) -__version__ = "2026.7.9.1" +__version__ = "2026.7.22.1" from autonerves import check_version diff --git a/docs/installation/conda.md b/docs/installation/conda.md index 463792824..0512e68fc 100644 --- a/docs/installation/conda.md +++ b/docs/installation/conda.md @@ -8,9 +8,17 @@ This acceleration is achieved through \[**JAX**\](), which provides GPU and TPU support. -When you install **PyAutoLens** (see instructions below), JAX will also be installed. However, the default installation may not include GPU support. +**JAX is not installed by default.** To install **PyAutoLens** with JAX, use the `jax` extra: -To ensure GPU acceleration, it is recommended that you install JAX with GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](). +```bash +pip install autolens[jax] --no-cache-dir +``` + +A plain `pip install autolens` gives a fully working install that runs on NumPy, but without any of the JAX +acceleration described above. + +The `[jax]` extra installs **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with +GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](). If you install **PyAutoLens** without a proper GPU setup, a warning will be displayed. @@ -49,9 +57,12 @@ The latest version of **PyAutoLens** is installed via pip as follows (the comman caching issues impacting the installation): ```bash -pip install autolens --no-cache-dir +pip install autolens[jax] --no-cache-dir ``` +The `[jax]` extra is recommended, as it enables the JAX acceleration described above. To install without JAX, +use `pip install autolens --no-cache-dir` instead. + If pip prints warnings about dependency version conflicts, these can usually be ignored — the instructions below will identify clearly if the installation is a success. diff --git a/docs/installation/pip.md b/docs/installation/pip.md index c18d41353..e3dc31939 100644 --- a/docs/installation/pip.md +++ b/docs/installation/pip.md @@ -14,9 +14,17 @@ distribution" error. Upgrade Python to 3.12+ before installing. This acceleration is achieved through \[**JAX**\](), which provides GPU and TPU support. -When you install **PyAutoLens** (see instructions below), JAX will also be installed. However, the default installation may not include GPU support. +**JAX is not installed by default.** To install **PyAutoLens** with JAX, use the `jax` extra: -To ensure GPU acceleration, it is recommended that you install JAX with GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](). +```bash +pip install autolens[jax] +``` + +A plain `pip install autolens` gives a fully working install that runs on NumPy, but without any of the JAX +acceleration described above. + +The `[jax]` extra installs **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with +GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](). If you install **PyAutoLens** without a proper GPU setup, a warning will be displayed. @@ -35,6 +43,13 @@ pip install --upgrade pip The latest version of **PyAutoLens** is installed via pip as follows (specifying the version as shown below ensures the installation has clean dependencies): +```bash +pip install autolens[jax] +``` + +The `[jax]` extra is recommended, as it enables the JAX acceleration described above. To install without JAX, +omit the extra: + ```bash pip install autolens ``` From fb209b3cbaa94fb4a0e6804d5596ec95d01ad5de Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 23 Jul 2026 22:26:59 +0100 Subject: [PATCH 2/2] chore: bump version sync to 2026.7.23.1 (released since PR opened) Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GWfsWWfTugN8biz8T8paRm --- autolens/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autolens/__init__.py b/autolens/__init__.py index cf129a538..eba8d6459 100644 --- a/autolens/__init__.py +++ b/autolens/__init__.py @@ -144,7 +144,7 @@ conf.instance.register(__file__) -__version__ = "2026.7.22.1" +__version__ = "2026.7.23.1" from autonerves import check_version