Skip to content

Point discrete_dp's optimal growth links at os_stochastic - #422

Merged
mmcky merged 1 commit into
mainfrom
fix/discrete-dp-optgrowth-links
Nov 23, 2026
Merged

mmcky merged 1 commit into
mainfrom
fix/discrete-dp-optgrowth-links

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Three links in lectures/discrete_dp.md go to the old optgrowth lecture, and both URLs end in a 404: https://python-intro.quantecon.org/optgrowth.html (lines 616 and 624) redirects to https://python.quantecon.org/optgrowth.html, which returns 404, as does https://python.quantecon.org/optgrowth.html#exercises (line 911). That lecture is now Optimal Savings III: Stochastic Returns in the intermediate series, which keeps the benchmark model and its analytical solution. This points the first two links there and names the series correctly. The old lecture's Exercise 2 no longer exists, so the last solution section now begins "Finally, let us plot the trajectories…" without pointing to it.

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 adaptive review requested due to automatic review settings November 22, 2026 10:30
@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit 1a08a5c
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6b0363e42ca6c1ad3da19b10
😎 Deploy Preview https://deploy-preview-422--lustrous-melomakarona-3ee73e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 needed to confirm that the external os_stochastic replacement and revised exercise wording preserve the lecture’s intended benchmark context and learning path.

No open issues 🎉

What changed in this PR

Updates the DiscreteDP exercise documentation to replace broken links to the obsolete optgrowth lecture with the current os_stochastic lecture and removes a link to an exercise that no longer exists.

Changes:

  • Replaced two broken optgrowth links with os_stochastic.html.
  • Corrected the lecture-series description from introductory to intermediate.
  • Removed the obsolete Exercise 2 link while preserving the surrounding explanation.
File Description
lectures/​discrete_dp.md Corrects outdated optimal-growth lecture links, updates the lecture-series description, and removes the obsolete Exercise 2 reference.

Review effort: Lite (adaptive)

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request November 22, 2026 10:43 Inactive
The stochastic optimal growth lecture is now os_stochastic, "Optimal
Savings III: Stochastic Returns", on python.quantecon.org, and both old
optgrowth URLs return 404. That series is the intermediate one, not the
introductory one. The old lecture's Exercise 2 no longer exists, so the
solution's pointer to it is dropped and the sentence kept.

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
@mmcky

mmcky commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Full validation at 1a08a5c (rebased onto main 354faf5).

  • Runs: a fresh cache.yml build that executes every lecture (45074450974). It's compared with a same-day build of main at 354faf5 (45012283119). Both passed.
  • Logs: the warning and error lines are identical on both sides; none new, none gone.
  • Pages (85): the only prose changes are in discrete_dp (the three optgrowth links become two os_stochastic links, and the Exercise 2 pointer is dropped) and in status (execution times). discrete_dp's own output changes are timing lines.
  • Execution noise: 50 other pages differ only in cell outputs or figures (timings, unseeded draws, redrawn figures). All 50 also differ when two other PRs from the same day (bibliography: set the 38 ruled entries to the lecture monorepo's #420 and Kaleido lectures: drop to_image's deprecated engine argument #421) are compared with the same main build, using the same script, so none comes from this change. No output warning, page structure or internal link changed. The stderr warnings are identical apart from kernel temp paths.
  • Links: https://python.quantecon.org/os_stochastic.html returns 200. Both old URLs end in a 404.

@mmcky
mmcky merged commit b96bd3b into main Nov 23, 2026
10 checks passed
@mmcky
mmcky deleted the fix/discrete-dp-optgrowth-links branch November 23, 2026 00:23
@mmcky
mmcky restored the fix/discrete-dp-optgrowth-links branch November 23, 2026 00:23
@mmcky
mmcky deleted the fix/discrete-dp-optgrowth-links branch November 23, 2026 00:52
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>

This branch was previously deployed

1 inactive deployment
pull request — 1a08a5c9 Deployed Nov 22, 2026 by github-actions[bot]
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