Skip to content

Repair the eq:Kalman102 reference in cross_product_trick - #1141

Merged
mmcky merged 2 commits into
mainfrom
fix/cross-product-trick-eq-role
Nov 23, 2026
Merged

mmcky merged 2 commits into
mainfrom
fix/cross-product-trick-eq-role

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

In lectures/cross_product_trick.md line 133, the {eq} role ends with a brace instead of a backtick ({eq}`eq:Kalman102}), so the reference to the equation doesn't render. The label is defined at line 121. This ends the role with a backtick.

Repairing the role exposed a second problem: the label was written after a bare align* environment, which MyST doesn't label, so the page showed "(eq:Kalman102)" as text and the reference had nothing to resolve to. The second commit writes the equation as $$ \begin{aligned} … \end{aligned} $$ (eq:Kalman102), as the other lectures do, which numbers it and lets the reference resolve.

This changes lecture content, so it needs a person's review before it merges.

Found while validating a build of lecture-dp from QuantEcon/lectures.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human verification is still needed to confirm that the corrected MyST role, equation label, and cross-reference render correctly in the lecture build.

No open issues 🎉

What changed in this PR

This PR repairs the malformed MyST equation reference in cross_product_trick.md, allowing the link to equation eq:Kalman102 to render correctly.

Changes:

  • Replaces the closing brace in the {eq} reference with the required backtick.
  • Preserves the existing equation label and surrounding lecture content.
File Description
lectures/​cross_product_trick.md Corrects the malformed eq:Kalman102 equation cross-reference syntax.

Review effort: Lite (adaptive)

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-1141--sunny-cactus-210e3e.netlify.app

Commit: 1af7195

📚 Changed Lectures


Build Info

mmcky and others added 2 commits November 23, 2026 08:51
The {eq} role ended with a brace instead of a backtick, so the
reference to eq:Kalman102 didn't render. The label is defined a few
lines above.

Found while validating a build of the lecture from QuantEcon/lectures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMZoSvoQTbzkdmZiMnd
The label was written after a bare align* environment, which MyST
does not label, so it showed on the page as the text "(eq:Kalman102)"
and, once the role was repaired, the reference had nothing to find.
Writing the equation as $$ \begin{aligned} ... \end{aligned} $$
(eq:Kalman102), as the other lectures do, numbers it and lets the
reference resolve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N
@mmcky
mmcky force-pushed the fix/cross-product-trick-eq-role branch from 95e865b to 1af7195 Compare November 22, 2026 21:51
@mmcky

mmcky commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Full validation at 1af7195 (rebased onto main 220fb97; main has since moved only by linkcheck.yml).

  • Runs: a fresh cache.yml build that executes every lecture (45074453765). It's compared with a same-day build of main at 220fb97 (45012272650). Both passed.
  • Logs: the warning and error lines are identical on both sides; none new, none gone. The warning that failed this PR's first head, "equation not found: eq:Kalman102", is gone.
  • Pages (176): the only prose changes are in cross_product_trick and in status (execution times). In cross_product_trick, the Kalman filtering formulas are now one numbered equation, (86.1), with both lines under one number, and the sentence at line 133 links to it (#equation-eq-kalman102). Before, it showed the raw {eq} text and a literal "(eq:Kalman102)".
  • Execution noise: 36 other pages differ only in cell outputs or figures (timings, unseeded draws, redrawn figures). 35 of them also differ when bibliography: set the 23 ruled entries to the lecture monorepo's #1140 from the same day is compared with the same main build, using the same script. The 36th, ifp_egm, differs only in a printed timing ratio (NumPy/JAX speedup 2.10x vs 2.05x). None comes from this change. No output warning or link changed anywhere else, and the stderr warnings are identical apart from kernel temp paths.

@mmcky
mmcky merged commit 7f077b3 into main Nov 23, 2026
3 checks passed
@mmcky
mmcky deleted the fix/cross-product-trick-eq-role branch November 23, 2026 00:18
mmcky pushed a commit to QuantEcon/lectures that referenced this pull request Nov 23, 2026
The nightly of 2026-11-23 re-copies 19 pool lectures whose canonical copy moved upstream: intermediate 12 (QuantEcon/lecture-python.myst#1144, QuantEcon/lecture-python.myst#1147 and QuantEcon/lecture-python.myst#1141), advanced 5 (QuantEcon/lecture-python-advanced.myst#419, QuantEcon/lecture-python-advanced.myst#421 and QuantEcon/lecture-python-advanced.myst#422) and intro 2 (QuantEcon/lecture-python-intro#876). In the merged bibliography only the header's jax input hash changes (QuantEcon/lecture-jax#377); its 1011 entries are unchanged. In sync/ledger.yml only pins and digests change.

Checked by mini:project-monorepo's recompute from a clean clone at the base, which gives the head's tree, and by the organiser's independent review: each lecture is byte-identical to its upstream copy at the new pin once the recorded asset rewrites are applied, no bibliography key is missing and no cross-reference is broken. The site-build, pool-check and drift-check runs on the head were green before merge.

Lecture content: reviewed by @mmcky ("Approve runs, then merge") in the organiser session, at head a815b36.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants