Skip to content

docs: point The Python API at the workspace script that carries its code - #1590

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/python-api-link-workspace-script
Sep 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/python-api-link-workspace-script

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Every code snippet on The Python API page exists as a runnable script and notebook in autofit_workspace, but the page never said so — its only pointer at the workspace was a generic repo link in the Resources section at the very bottom.

The intro now links:

Note on the two URL forms

The GitHub source links track main (you want to read the current code), while the Colab link is pinned to 2026.9.8.1 — matching the convention already used in docs/index.md and README.md. Pinning matters there: Colab installs the released library, so an unpinned notebook can use API that is on main but not yet published. I matched the existing convention rather than introducing a second, main-tracking form.

The workspace files keep their the_basics name. Renaming them is separate work in a separate repo, flagged when this page was renamed in #1588.

Test Plan

  • Both GitHub URLs return 200; the pinned Colab tag 2026.9.8.1 returns 200.
  • python -m sphinx -b html docs … → 30 warnings, unchanged against the baseline.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk

Every snippet on the page exists as a runnable script and notebook in
autofit_workspace; the page never said so, and its only pointer at the
workspace was a generic repo link in the Resources section at the bottom.

Links scripts/overview/overview_1_the_basics.py and the matching notebook
from the page intro, plus the Colab route. The Colab URL is pinned to
2026.9.8.1 to match the convention already used in docs/index.md and
README.md, rather than introducing a second, main-tracking form.

The workspace files keep the "the_basics" name — renaming them is separate
work in a separate repo (noted when this page was renamed in #1588).

Sphinx: 30 warnings, unchanged against the baseline.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 9, 2026
@Jammy2211
Jammy2211 merged commit 15b1879 into main Sep 9, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/python-api-link-workspace-script branch September 9, 2026 17:31
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 26, 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