Skip to content

docs(cookbooks/analysis): __Live Quick-Update Visualization__ section - #62

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/quick-update-display-id
May 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/quick-update-display-id

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Documents quick-update visualization in the analysis cookbook — previously had zero coverage despite being a core search-time feature. Adds a new __Live Quick-Update Visualization__ section after the existing __Visualization__ section, covering both the long-standing iterations_per_quick_update / background_quick_update mechanics and the new in-cell live-update behaviour added in PyAutoFit #1290 (merged).

Workspace companion to PyAutoFit #1290; closes the workspace half of PyAutoLabs/PyAutoFit#1289.

Scripts Changed

  • scripts/cookbooks/analysis.py — new __Live Quick-Update Visualization__ section (52 lines) covering iterations_per_quick_update, background_quick_update=True, the new IPython live-cell rendering when running in a Jupyter / Colab kernel, the script-mode fallback (PNGs on disk unchanged), and the PYAUTO_DISABLE_IPYTHON_DISPLAY=1 opt-out. Inserts a small commented API-shape example showing the Nautilus kwargs that opt into it. Matches existing cookbook prose convention — no runnable Nautilus fit in the cookbook itself.
  • notebooks/cookbooks/analysis.ipynb — regenerated via PyAutoBuild/autobuild/build_util.py_to_notebook to match the updated script.

Upstream PR

Test Plan

  • Cookbook script executes cleanly under PYAUTO_TEST_MODE=2 python scripts/cookbooks/analysis.py (verified locally — no exceptions; new section parses).
  • Workspace smoke tests pass via /smoke_test autofit_workspace.
  • After this lands in a release, confirm the regenerated notebooks/cookbooks/analysis.ipynb opens cleanly in Jupyter and renders the new section.

🤖 Generated with Claude Code

Adds a new section to the analysis cookbook covering quick-update
visualization, which previously had zero coverage despite being a
core search-time feature.

Covers:
- iterations_per_quick_update — what it does, how perform_quick_update
  is called every N likelihood evals with the current best-fit
  instance.
- background_quick_update=True — daemon-thread rendering with
  latest-only drop policy so the sampler is never blocked while
  matplotlib saves PNGs.
- New in PyAutoFit #1290: when running in a Jupyter / Colab kernel,
  the cell that ran search.fit(...) auto-updates in place via
  IPython.display.update_display with a stable display_id. No code
  change needed by the user.
- Script-mode fallback unchanged — PNGs still land on disk under the
  search's output folder.
- PYAUTO_DISABLE_IPYTHON_DISPLAY=1 opt-out for papermill / nbconvert
  pipelines.
- Small commented API-shape example showing the relevant Nautilus
  kwargs.

Companion to PyAutoFit #1290 (merged). Closes the workspace half of
PyAutoLabs/PyAutoFit#1289. notebooks/cookbooks/analysis.ipynb
regenerated to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 21, 2026
@Jammy2211
Jammy2211 merged commit a7089db into main May 21, 2026
2 of 6 checks passed
@Jammy2211
Jammy2211 deleted the feature/quick-update-display-id branch May 21, 2026 20:36
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant