diff --git a/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb b/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb index a92ded1..0858602 100644 --- a/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb @@ -54,6 +54,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb b/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb index 4efb4dc..e6fb7ba 100644 --- a/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb @@ -101,6 +101,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb b/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb index 35b0ead..2eb893b 100644 --- a/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb @@ -106,6 +106,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb b/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb index df37b39..202ed08 100644 --- a/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb @@ -73,6 +73,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb b/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb index 46aad80..3b961d2 100644 --- a/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb @@ -102,6 +102,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_5_lensing_formalism.ipynb b/notebooks/chapter_1_introduction/tutorial_5_lensing_formalism.ipynb index 9d55261..d237535 100644 --- a/notebooks/chapter_1_introduction/tutorial_5_lensing_formalism.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_5_lensing_formalism.ipynb @@ -74,6 +74,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_6_data.ipynb b/notebooks/chapter_1_introduction/tutorial_6_data.ipynb index e0a945d..b5dbff1 100644 --- a/notebooks/chapter_1_introduction/tutorial_6_data.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_6_data.ipynb @@ -78,6 +78,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_7_fitting.ipynb b/notebooks/chapter_1_introduction/tutorial_7_fitting.ipynb index 2e12b36..5d4e481 100644 --- a/notebooks/chapter_1_introduction/tutorial_7_fitting.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_7_fitting.ipynb @@ -81,6 +81,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_1_introduction/tutorial_8_summary.ipynb b/notebooks/chapter_1_introduction/tutorial_8_summary.ipynb index f8e9322..2249557 100644 --- a/notebooks/chapter_1_introduction/tutorial_8_summary.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_8_summary.ipynb @@ -64,6 +64,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_10_prior_passing.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_10_prior_passing.ipynb index 812c9ca..542b019 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_10_prior_passing.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_10_prior_passing.ipynb @@ -62,6 +62,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_11_slam.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_11_slam.ipynb index e87c6de..2dc2ce6 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_11_slam.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_11_slam.ipynb @@ -104,6 +104,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb index 237f7cf..b8c721d 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb @@ -200,6 +200,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb index da5c1cb..64fb236 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb @@ -114,6 +114,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.ipynb index 758c649..79e96f7 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.ipynb @@ -73,6 +73,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb index da87e66..a9612b8 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb @@ -70,6 +70,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_5_linear_profiles.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_5_linear_profiles.ipynb index 74467af..bb7b334 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_5_linear_profiles.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_5_linear_profiles.ipynb @@ -81,6 +81,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_6_masking_and_positions.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_6_masking_and_positions.ipynb index de71390..4959b81 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_6_masking_and_positions.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_6_masking_and_positions.ipynb @@ -57,6 +57,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_7_results.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_7_results.ipynb index bfdd67f..0c4b940 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_7_results.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_7_results.ipynb @@ -54,6 +54,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_8_need_for_speed.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_8_need_for_speed.ipynb index 5b3b74a..d406431 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_8_need_for_speed.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_8_need_for_speed.ipynb @@ -202,6 +202,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_2_lens_modeling/tutorial_9_search_chaining.ipynb b/notebooks/chapter_2_lens_modeling/tutorial_9_search_chaining.ipynb index e817be4..f99c184 100644 --- a/notebooks/chapter_2_lens_modeling/tutorial_9_search_chaining.ipynb +++ b/notebooks/chapter_2_lens_modeling/tutorial_9_search_chaining.ipynb @@ -93,6 +93,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_10_fit_problems.ipynb b/notebooks/chapter_3_pixelizations/tutorial_10_fit_problems.ipynb index 72d492e..eaa5b5e 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_10_fit_problems.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_10_fit_problems.ipynb @@ -94,6 +94,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_11_brightness_adaption.ipynb b/notebooks/chapter_3_pixelizations/tutorial_11_brightness_adaption.ipynb index 666d224..7e29ae4 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_11_brightness_adaption.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_11_brightness_adaption.ipynb @@ -64,6 +64,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_12_adaptive_regularization.ipynb b/notebooks/chapter_3_pixelizations/tutorial_12_adaptive_regularization.ipynb index 3dcfc61..eb7698d 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_12_adaptive_regularization.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_12_adaptive_regularization.ipynb @@ -56,6 +56,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb b/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb index b0fb853..613222a 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb @@ -52,6 +52,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_2_mappers.ipynb b/notebooks/chapter_3_pixelizations/tutorial_2_mappers.ipynb index 077b870..5a7de9b 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_2_mappers.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_2_mappers.ipynb @@ -53,6 +53,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_3_inversions.ipynb b/notebooks/chapter_3_pixelizations/tutorial_3_inversions.ipynb index ae3629b..ce421b4 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_3_inversions.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_3_inversions.ipynb @@ -57,6 +57,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_4_bayesian_regularization.ipynb b/notebooks/chapter_3_pixelizations/tutorial_4_bayesian_regularization.ipynb index 75ad0f3..a6191e1 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_4_bayesian_regularization.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_4_bayesian_regularization.ipynb @@ -60,6 +60,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_5_bayesian_formalism.ipynb b/notebooks/chapter_3_pixelizations/tutorial_5_bayesian_formalism.ipynb index e9dc189..0418085 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_5_bayesian_formalism.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_5_bayesian_formalism.ipynb @@ -86,6 +86,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_6_borders.ipynb b/notebooks/chapter_3_pixelizations/tutorial_6_borders.ipynb index 5aad03d..c5f1cfe 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_6_borders.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_6_borders.ipynb @@ -55,6 +55,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_7_lens_modeling.ipynb b/notebooks/chapter_3_pixelizations/tutorial_7_lens_modeling.ipynb index 732e420..60a105c 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_7_lens_modeling.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_7_lens_modeling.ipynb @@ -61,6 +61,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.ipynb b/notebooks/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.ipynb index 27ab380..705a587 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.ipynb @@ -56,6 +56,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_3_pixelizations/tutorial_9_model_fit.ipynb b/notebooks/chapter_3_pixelizations/tutorial_9_model_fit.ipynb index a0df3aa..1d1fb3c 100644 --- a/notebooks/chapter_3_pixelizations/tutorial_9_model_fit.ipynb +++ b/notebooks/chapter_3_pixelizations/tutorial_9_model_fit.ipynb @@ -50,6 +50,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb index a5cc70a..8559336 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb @@ -90,6 +90,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb index f10fd78..0822c2e 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb @@ -81,6 +81,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb index 209a361..7149e03 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb @@ -138,6 +138,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb index 846c2c0..e71c823 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb @@ -101,6 +101,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb index a2415ac..7defb14 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb @@ -123,6 +123,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb index 72c2c43..e2984f6 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb @@ -94,6 +94,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/chapter_optional/tutorial_searches.ipynb b/notebooks/chapter_optional/tutorial_searches.ipynb index cdb0cb2..a7d27ff 100644 --- a/notebooks/chapter_optional/tutorial_searches.ipynb +++ b/notebooks/chapter_optional/tutorial_searches.ipynb @@ -56,6 +56,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/cluster.ipynb b/notebooks/simulator/cluster.ipynb index 4c5f8ab..1044d46 100644 --- a/notebooks/simulator/cluster.ipynb +++ b/notebooks/simulator/cluster.ipynb @@ -86,6 +86,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/group.ipynb b/notebooks/simulator/group.ipynb index 0197a34..a44cf1e 100644 --- a/notebooks/simulator/group.ipynb +++ b/notebooks/simulator/group.ipynb @@ -82,6 +82,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/interferometer.ipynb b/notebooks/simulator/interferometer.ipynb index b5513b0..50ff7e2 100644 --- a/notebooks/simulator/interferometer.ipynb +++ b/notebooks/simulator/interferometer.ipynb @@ -72,6 +72,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/lens_extra_galaxy.ipynb b/notebooks/simulator/lens_extra_galaxy.ipynb index 6c50d85..428c7ee 100644 --- a/notebooks/simulator/lens_extra_galaxy.ipynb +++ b/notebooks/simulator/lens_extra_galaxy.ipynb @@ -78,6 +78,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/lens_sersic.ipynb b/notebooks/simulator/lens_sersic.ipynb index d09be35..5d774a0 100644 --- a/notebooks/simulator/lens_sersic.ipynb +++ b/notebooks/simulator/lens_sersic.ipynb @@ -68,6 +68,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/lens_x2.ipynb b/notebooks/simulator/lens_x2.ipynb index a0d6f33..16e11b9 100644 --- a/notebooks/simulator/lens_x2.ipynb +++ b/notebooks/simulator/lens_x2.ipynb @@ -78,6 +78,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/lens_x3.ipynb b/notebooks/simulator/lens_x3.ipynb index c3b6606..841fb6a 100644 --- a/notebooks/simulator/lens_x3.ipynb +++ b/notebooks/simulator/lens_x3.ipynb @@ -79,6 +79,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/no_lens_light.ipynb b/notebooks/simulator/no_lens_light.ipynb index ea1901d..ed4d619 100644 --- a/notebooks/simulator/no_lens_light.ipynb +++ b/notebooks/simulator/no_lens_light.ipynb @@ -69,6 +69,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/no_lens_light__mass_sis.ipynb b/notebooks/simulator/no_lens_light__mass_sis.ipynb index 3178f64..f781200 100644 --- a/notebooks/simulator/no_lens_light__mass_sis.ipynb +++ b/notebooks/simulator/no_lens_light__mass_sis.ipynb @@ -67,6 +67,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/source_complex.ipynb b/notebooks/simulator/source_complex.ipynb index 937592e..e70eb9d 100644 --- a/notebooks/simulator/source_complex.ipynb +++ b/notebooks/simulator/source_complex.ipynb @@ -71,6 +71,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")" diff --git a/notebooks/simulator/weak_lensing.ipynb b/notebooks/simulator/weak_lensing.ipynb index 638a310..5b7daf4 100644 --- a/notebooks/simulator/weak_lensing.ipynb +++ b/notebooks/simulator/weak_lensing.ipynb @@ -69,6 +69,20 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", + "\n", + " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", + " # which the released autonerves bootstrap does not yet install and Colab\n", + " # does not ship. Without these the notebook dies partway through a fit.\n", + " # Remove once autonerves > 2026.9.15.1 is released.\n", + " subprocess.check_call(\n", + " [\n", + " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", + " \"corner==2.2.2\",\n", + " \"optax>=0.2.5\",\n", + " \"xxhash<=3.4.1\",\n", + " \"blackjax>=1.6.2\",\n", + " ]\n", + " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtolens\")"