Skip to content

refactor: make Colab setup compact across projects - #328

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/compact-colab-setup
Oct 28, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/compact-colab-setup

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Generated Colab notebooks now show one collapsed “Set up Google Colab” cell instead of a full installation block. Introductory examples explain installation in two sentences (including “locally or in HTML”); later examples link back to their project's introduction.

Handwritten setup cells are expanded during generation so fresh Colab sessions still bootstrap before importing the scientific library. CPU/GPU options and subsequent science code are preserved.

API Changes

No scientific-library API or installation behavior changes. inject_colab_setup now normalizes supported handwritten cells as well as inserting setup cells; its boolean result reports whether the notebook changed. Existing callers remain compatible.

Validation

  • Full Hands test suite: 584 passed after the final configuration change (235.97s).
  • Tenant-firewall check passes after moving project metadata to workspace configuration; all 634 notebook explanations/links remain identical.
  • 28 setup tests, including simulated fresh Colab, local execution, CPU/GPU options, repeat generation, mixed code and preservation of subsequent Markdown sections.
  • All six project families regenerated: 633 notebooks, 632 compact setup cells, one prose-only notebook; unchanged science code and idempotency verified.
  • Independent review's Markdown-boundary finding fixed and rechecked. Hosted Colab installation/rendering was not exercised.

Heart RED development override

User authorization for this task: “I authorize you to continue despite RED”. Exact reasons:

  • PyAutoArray: 4 uncommitted source change(s)
  • PyAutoGalaxy: 9 commit(s) behind origin
  • PyAutoLens: 7 commit(s) behind origin
  • release validation stale: source moved since rehearsal (PyAutoGalaxy, PyAutoLens)

Development commit/push/PR only. No merge, release or CI bypass.

Part of #327. Consumer PRs follow; keep the issue open until the rollout is merged.

@Jammy2211
Jammy2211 merged commit 16dec73 into main Oct 28, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/compact-colab-setup branch October 28, 2026 21:17
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