Skip to content

docs(tutorial): split Part 8 into short tutorials; the section becomes Tutorials (ITL-1460) - #557

Merged
eywalker merged 6 commits into
mainfrom
eywalker/eywalker/itl-1460-tutorials-split-part-8-into-short
Nov 26, 2026
Merged

eywalker merged 6 commits into
mainfrom
eywalker/eywalker/itl-1460-tutorials-split-part-8-into-short

Conversation

@eywalker

@eywalker eywalker commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes ITL-1460

PR 2 of the tutorial work. #556 (ITL-1459, the wording pass) is merged, and main is merged into this branch, so the diff holds only ITL-1460's changes.

What changes

  • The section is Tutorials: a core course (Parts 0 to 6, file names kept) and short tutorials, each on one subject, readable in any order after the core parts it names.
  • Part 8 (about 4,000 words) is split into three pages: Inspecting results, Tracing a value (with why a row is missing) and Chaining pipelines (as_source() and what a new job cannot use yet).
  • Parts 7, 9 and 10 become Working with files, Handling errors and Where next (the section's end page). The short tutorials have no part number, so their files lose the number too: a numbered name would keep an order the section no longer has, and 08- would be missing.
  • Every short tutorial opens with a "Before you start" line naming the core parts it needs, uses the one dataset (workshop_data) and runs on its own.
  • print_lineage is gone. The steps of a job are read from print(job.diagram()), and the path of one value from job.diagram(highlight=trace.highlight()).
  • "Tracing a value" gains two exercises (it had none for trace and why_missing); "Chaining pipelines" gains one.
  • Navigation: the sidebar (two sub-groups), docs/tutorial/index.md, README.md, docs/index.md, the home page button, and the concept and troubleshooting pages that linked the old parts.
  • docs/dev/documentation-style.md: two rules for short tutorials.
Old page New page
07-files.md files.md
08-inspecting-and-tracing.md inspecting-results.md, tracing-a-value.md, chaining-pipelines.md
09-when-things-go-wrong.md handling-errors.md
10-where-next.md where-next.md

The review's comments on Part 8, and its overall comments

Comment Verdict What was done
"Tutorial" should be "Tutorials" Taken Section, sidebar, home page button, README and index
"Which steps produced this?" → "Tracing the steps" Taken
The recursive print_lineage function is odd Taken Removed; print(job.diagram())
Remove "this is the pipeline as you wrote it, including the join ..." Taken
Reword the sentence on the job drawing the whole graph Changed "In a notebook, job as the last line of a cell draws the same graph as a picture." A script draws nothing, so the sentence names the notebook only
"Which rows did a value come from?" → "Tracing rows" Taken
"Two system-tag columns, because ..." → "Since two sources feed rates, ..." Taken
Remove the "After group_by" note, or shorten its last sentence Taken (the shortening) The members' order is stated once, in Part 4
Reword the sentence introducing get_all_records and the meta columns Changed "get_all_records(columns={"meta": True}) returns them with the details of the call": the proposed wording made the columns the subject, and the call is what the reader types
"The ones you are most likely to want:" → "Some important columns:" Taken
Remove "They answer different questions." Taken
Use "returns" in the two bullets on as_table and get_all_records Taken
The text after the trace repeats the patterns of the earlier comments Taken Rewritten to the style guide; the bold lead-ins are now headings
"Tracing one value to its sources" is long: a separate tutorial? Taken "Tracing a value"
"Starting a second pipeline from stored results" as another tutorial, with its two rewordings Taken "Chaining pipelines"
"Not yet: a stored joined result as the source of a new job" → "The above stage is not stored" Changed "A new job cannot use this source yet": the note is about a new job refusing the source, which the proposed title does not say (the stage not being stored is its first sentence)
"What to remember" → "Key points" everywhere Taken Done in #556; the three new pages follow it
Remove "Next: ..." lines Taken Done in #556; none on the new pages

Not from the review: the heading "How was it computed?" is now "Call records" (the style guide has no question headings).

Word counts

Page Before After
index.md 624 719
Parts 0 to 6 unchanged unchanged
Working with files 1,555 1,564
Part 8 4,000 Inspecting results 1,287; Tracing a value 2,392; Chaining pipelines 670
Handling errors 1,692 1,701
Where next 1,028 1,026

The counts include the samples and their printed output. About 1,300 of the words of "Tracing a value" are the output of the traces. The three pages together have more words than Part 8 because each repeats the setup sample (about 110 words) and has its own opening, key points and exercises.

Checks

  • tests/test_docs (every sample on every page, the site content build, the provenance pictures): passes.
  • Site build (pnpm build): 45 pages, "All internal links are valid."
  • ruff check, ruff format --check: clean. basedpyright: 0 errors. Golden --check: all values match.
  • changelog.d/ITL-1460.md added (the pages have new addresses).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Reorganized tutorials into a seven-part core course and five standalone guides on working with files, inspecting results, tracing values, chaining pipelines, and handling errors.
    • Added practical examples, exercises, and solutions to the new guides.
    • Updated tutorial links and navigation across the documentation.

eywalker and others added 6 commits November 24, 2026 20:36
…rial (ITL-1459)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…output of an undone edit (ITL-1459)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion Tutorials (ITL-1460)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The tutorial index and site navigation now separate a seven-part core course from short topic tutorials. The former combined Part 8 page is removed and replaced by separate tutorials. Documentation references and tests use the updated page addresses.

Changes: Tutorial documentation

Layer / File(s) Summary
Course structure and navigation
README.md, docs/index.md, docs/getting-started.md, docs/dev/documentation-style.md, docs/tutorial/index.md, docs/tutorial/files.md, docs/tutorial/handling-errors.md, docs/tutorial/where-next.md, scripts/docs_site_content.py, site/README.md, site/astro.config.mjs
The tutorial index distinguishes the core course from short tutorials. The site navigation and home-page label use “Tutorials.” Existing tutorial headings and authoring guidance reflect the revised structure.
Standalone tutorial content
docs/tutorial/08-inspecting-and-tracing.md, docs/tutorial/inspecting-results.md, docs/tutorial/tracing-a-value.md, docs/tutorial/chaining-pipelines.md, docs/dev/scripts/provenance_diagrams.py
The former Part 8 page is removed. Separate tutorials cover inspecting results, tracing values, and chaining pipelines, with examples and exercises. The provenance diagram script documentation names “Tracing a value.”
Updated references and validation
changelog.d/ITL-1460.md, docs/concepts/*, docs/troubleshooting.md, tests/test_docs/*
Concept and troubleshooting pages link to the updated tutorial pages. The changelog and documentation tests reflect the new page addresses and “Tutorials” label.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to ddf74

This reorganizes the tutorial documentation into a core course plus short standalone tutorials, and updates navigation, links and tests to match. No actionable merge-blocking risk was found.

Security architecture risk: Minimal · up to ddf74

The change updates how readers find and follow tutorials. No material change to security, failure containment, rollback, or ownership was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the primary change: Part 8 is split into short tutorials and the section is renamed to Tutorials. The ticket reference is included. The title is slightly long at 91 characters, but it …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the primary change: Part 8 is split into short tutorials and the section is renamed to Tutorials. The ticket reference is included. The title is slightly long at 91 characters, but it is specific and matches the changeset and objectives.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0d1e017 and ddf745e.

Files selected for processing: 25

  • README.md
  • changelog.d/ITL-1460.md
  • docs/concepts/file-types.md
  • docs/concepts/notebooks.md
  • docs/concepts/pipeline-job.md
  • docs/concepts/provenance.md
  • docs/dev/documentation-style.md
  • docs/dev/scripts/provenance_diagrams.py
  • docs/getting-started.md
  • docs/index.md
  • docs/troubleshooting.md
  • docs/tutorial/08-inspecting-and-tracing.md
  • docs/tutorial/chaining-pipelines.md
  • docs/tutorial/files.md
  • docs/tutorial/handling-errors.md
  • docs/tutorial/index.md
  • docs/tutorial/inspecting-results.md
  • docs/tutorial/tracing-a-value.md
  • docs/tutorial/where-next.md
  • scripts/docs_site_content.py
  • site/README.md
  • site/astro.config.mjs
  • tests/test_docs/test_doc_samples.py
  • tests/test_docs/test_provenance_diagrams.py
  • tests/test_docs/test_site_content.py
Files with no reviewable changes: 1

  • docs/tutorial/08-inspecting-and-tracing.md

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Additional context used

Code guidelines: 1

CLAUDE.md — auto-discovered
Path-based instructions: 9

Source excerpt: Every fenced `python` block in `README.md`, `docs/index.md`, `docs/getting-started.md`, `docs/troubleshooting.md`, `docs/concepts/`, `docs/reference/` and `docs/tutorial/` is executed by `tests/test_docs/test_doc_samples.py`...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • README.md
  • docs/concepts/file-types.md
  • docs/concepts/notebooks.md
  • docs/concepts/pipeline-job.md
  • docs/concepts/provenance.md
  • docs/getting-started.md
  • docs/index.md
  • docs/troubleshooting.md
  • docs/tutorial/chaining-pipelines.md
  • docs/tutorial/files.md
  • docs/tutorial/handling-errors.md
  • docs/tutorial/index.md
  • docs/tutorial/inspecting-results.md
  • docs/tutorial/tracing-a-value.md
  • docs/tutorial/where-next.md
Source excerpt: `docs/` is the only source.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/file-types.md
  • docs/concepts/notebooks.md
  • docs/concepts/pipeline-job.md
  • docs/concepts/provenance.md
  • docs/dev/documentation-style.md
  • docs/dev/scripts/provenance_diagrams.py
  • docs/getting-started.md
  • docs/index.md
  • docs/troubleshooting.md
  • docs/tutorial/chaining-pipelines.md
  • docs/tutorial/files.md
  • docs/tutorial/handling-errors.md
  • docs/tutorial/index.md
  • docs/tutorial/inspecting-results.md
  • docs/tutorial/tracing-a-value.md
  • docs/tutorial/where-next.md
Source excerpt: What is published is decided in `scripts/docs_site_content.py` (`PUBLISHED_FILES`, `PUBLISHED_FOLDERS`, `EXCLUDED`).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/getting-started.md
  • docs/index.md
  • docs/troubleshooting.md
  • scripts/docs_site_content.py
Source excerpt: Tests and golden fixtures that build a source with tag columns pass `tag_only_columns=True` unless the test is about the default (developer, November 16, 2026, ITL-1159).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_docs/test_doc_samples.py
  • tests/test_docs/test_provenance_diagrams.py
  • tests/test_docs/test_site_content.py
Source excerpt: A pull request never edits `CHANGELOG.md` (developer, November 11, 2026; ITL-961).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1460.md
Source excerpt: The file holds only the text that would have gone under the release heading in `CHANGELOG.md`: the same category headings `CHANGELOG.md` uses (`### Breaking changes and migration`, `### Added`, `### Changed`, `### Fixed`, `#...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1460.md
Source excerpt: Tests use the **public interface** wherever possible (developer, November 10, 2026): drive an operator by calling it, `op(stream)`, and read the result through the stream's public methods.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_docs/test_doc_samples.py
  • tests/test_docs/test_provenance_diagrams.py
  • tests/test_docs/test_site_content.py
Source excerpt: Write pages as before: a `# <title>` first line, mkdocs-style admonitions (`!!!

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/file-types.md
  • docs/concepts/notebooks.md
  • docs/concepts/pipeline-job.md
  • docs/concepts/provenance.md
  • docs/dev/documentation-style.md
  • docs/dev/scripts/provenance_diagrams.py
  • docs/getting-started.md
  • docs/index.md
  • docs/troubleshooting.md
  • docs/tutorial/chaining-pipelines.md
  • docs/tutorial/files.md
  • docs/tutorial/handling-errors.md
  • docs/tutorial/index.md
  • docs/tutorial/inspecting-results.md
  • docs/tutorial/tracing-a-value.md
  • docs/tutorial/where-next.md
Use [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) Python docstrings everywhere.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/dev/scripts/provenance_diagrams.py
  • scripts/docs_site_content.py
  • tests/test_docs/test_doc_samples.py
  • tests/test_docs/test_provenance_diagrams.py
  • tests/test_docs/test_site_content.py
Learnings: 3

Learning: 2026-11-24T01:41:10.097Z

Learnt from: CR
Repo: metamorphic-labs/orcapod-python PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-24T01:41:10.097Z
Learning: Applies to changelog.d/*.md : Source excerpt:
# Claude Code instructions for orcapod-python

## Changelog

- The file holds only the text that would have gone under the release heading in
  `CHANGELOG.md`: the same category headings `CHANGELOG.md` uses
  (`### Breaking changes and migration`, `### Added`, `### Changed`, `### Fixed`,
  `### Known limitations`), each followed by its text: bullet lines, or `####` sub-headings
  with paragraphs, as `CHANGELOG.md` itself has. No version heading, no date, no other
  `#`, `##` or `###` heading, and no empty category.

Applied to files:

  • changelog.d/ITL-1460.md
Learning: 2026-11-24T01:41:10.097Z

Learnt from: CR
Repo: metamorphic-labs/orcapod-python PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-24T01:41:10.097Z
Learning: Applies to docs/** : Source excerpt:
# Claude Code instructions for orcapod-python

## Documentation site

- Write pages as before: a `# <title>` first line, mkdocs-style admonitions (`!!! note "Title"`,
  `??? success "Solution"`) and relative `.md` links; the script converts them. A link to a
  missing or unpublished page or file fails the build, and the site build validates every
  link and anchor.

Applied to files:

  • docs/concepts/file-types.md
  • docs/tutorial/index.md
Learning: 2026-11-24T01:41:10.097Z

Learnt from: CR
Repo: metamorphic-labs/orcapod-python PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-24T01:41:10.097Z
Learning: Applies to docs/tutorial/** : Source excerpt:
# Claude Code instructions for orcapod-python

## Documentation samples

Every fenced `python` block in `README.md`, `docs/index.md`, `docs/getting-started.md`,
`docs/troubleshooting.md`, `docs/concepts/`, `docs/reference/` and `docs/tutorial/` is executed
by `tests/test_docs/test_doc_samples.py`. When writing docs:

- Tutorial pages (`docs/tutorial/`) all use one synthetic dataset, written by
  `docs/tutorial/workshop_data.py` (standard library only, deterministic; tested by
  `tests/test_docs/test_workshop_data.py`). Each page starts with
  `from workshop_data import make_dataset`; the harness puts `docs/tutorial` on `PYTHONPATH`.
  Do not add a second dataset or a dependency to the generator.

Applied to files:

  • docs/tutorial/tracing-a-value.md
LanguageTool

changelog.d/ITL-1460.md

[locale-violation] ~4-~4: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ne subject and can be read in any order afterwards. Part 8 is split into "Inspecting res...

(AFTERWARDS_US)

docs/tutorial/chaining-pipelines.md

[style] ~75-~75: Consider shortening this phrase to just ‘whether’, unless you mean ‘regardless of whether’.
Context: ...ource()` reads what the database holds, whether or not the node has run in this Python session...

(WHETHER)

docs/tutorial/tracing-a-value.md

[style] ~273-~273: To strengthen your wording, consider replacing the phrasal verb “leave out”.
Context: ...nd job keeps only the imec0 probe and leaves out the sessions of mouse_04. Row 4 of `u...

(OMIT_EXCLUDE)

markdownlint-cli2 (0.24.0)

docs/tutorial/chaining-pipelines.md

[warning] 134-134: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

[warning] 156-156: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

docs/tutorial/inspecting-results.md

[warning] 227-227: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

[warning] 240-240: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

docs/tutorial/tracing-a-value.md

[warning] 354-354: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

[warning] 369-369: Code block style
Expected: fenced; Actual: indented

(MD046, code-block-style)

Additional comments: 8

scripts/docs_site_content.py: 1

244-244: LGTM!

site/README.md: 1

126-126: LGTM!

site/astro.config.mjs: 1

133-133: LGTM!

Also applies to: 136-158

docs/tutorial/chaining-pipelines.md: 1

1-156: LGTM!

docs/tutorial/inspecting-results.md: 1

1-243: LGTM!

docs/tutorial/tracing-a-value.md: 1

1-370: LGTM!

docs/dev/scripts/provenance_diagrams.py: 1

5-5: LGTM!

changelog.d/ITL-1460.md: 1

1-9: LGTM!

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Posted by a Claude Code agent on behalf of @eywalker.

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@eywalker
eywalker marked this pull request as ready for review November 25, 2026 08:17
@eywalker
eywalker merged commit 5eb327a into main Nov 26, 2026
16 checks passed
@eywalker
eywalker deleted the eywalker/eywalker/itl-1460-tutorials-split-part-8-into-short branch November 26, 2026 08:40
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