Repository navigation
[autodiff] Take programming's text, so both series publish one lecture - #357
Merged
Merged
Conversation
Programming and JAX both publish autodiff. Programming's copy is John's April 2026 adaptation of this one, and carries corrections that never reached this copy: typo and notation fixes and a cleaner split of the random key in the regression example. John and Matt decided on 2026-10-12 that the two copies become one text (project-monorepo#111). This copy becomes programming's, with an opening sentence that suits both series. The set-up cell installs jax with pip, a no-op here since CI installs jax[cuda13]; the nvidia-smi GPU check goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📖 Netlify Preview Ready!Preview URL: https://pr-357--incomparable-parfait-2417f8.netlify.app Commit: 📚 Changed LecturesBuild Info
|
There was a problem hiding this comment.
🟢 Approval recommended
The changes are verified editorial corrections and a self-consistent random-key refactor with no stored outputs or broken references.
0 open findings
What changed in this PR
This PR syncs lectures/autodiff.md with the programming series' copy (QuantEcon/lecture-python-programming#644) so that a single source serves both the JAX and programming lecture series. The changes are editorial corrections, a setup-cell swap, and a change to how the regression example seeds its random data.
Changes:
- Applies spelling/grammar fixes ("causes"→"cause", "evalute"→"evaluate", "evaluates"→"evaluate", "my minimizing"→"by minimizing", "auto diff"→"autodiff") and fixes the LaTeX notation in the
$f(x)=\exp(2x)$ example. - Replaces the
!nvidia-smiGPU check with a hidden-output!pip install jaxsetup cell and movesfrom sympy import symbolsinto the top imports (dropping the now-unuseddiffimport, since.diff()is used as a method). - Reworks the regression example to split the key into
x_keyandϵ_keyup front, changing the simulated data (and resulting output numbers), plus softens the opening sentence wording.
| File | Description |
|---|---|
| lectures/autodiff.md | Editorial corrections, setup-cell swap (pip install jax vs nvidia-smi), import reorganization, and a revised random-key split in the regression example. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
mmcky
added a commit
that referenced
this pull request
Oct 12, 2026
…ources (#358) publish-2026oct12 succeeded but deployed the build cache's HTML unchanged, so jax.quantecon.org does not show autodiff from #357. The "Build HTML" step logged "updating environment: 0 added, 0 changed, 0 removed" and "no targets are out of date": the cache is extracted after the checkout, so its HTML is newer than every source file. Drop _build/html and _build/.doctrees after downloading the cache; the executed notebooks in _build/.jupyter_cache are kept. The same step landed in lecture-python.myst as QuantEcon/lecture-python.myst#1083. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
autodiffone lecture that programming and JAX both publish: this copy becomes programming's text. QuantEcon/lecture-python-programming#644 changes the one sentence that differs there. John and Matt decided this on 2026-10-12 (QuantEcon/project-monorepo#111).Why. Programming's copy is John's April 2026 adaptation of this lecture (QuantEcon/lecture-python-programming#513), and its corrections never reached this copy. From now on a change is made once and reaches both series.
What changes for readers of this series.
x_keyandϵ_keybefore drawing, rather than drawingxwithkeyand then splitting it. The simulated data therefore change, and so do the numbers in that section's output.sympy.symbols, at the top.!pip install jaxwith its output hidden, in place of the!nvidia-smiGPU check. Here it is a no-op, since CI installsjax[cuda13].For John:
!nvidia-smi. One text could carry it too, but a programming reader without a GPU would then see "command not found".Links in.
jax_intro_jax,newtons_methodandjax_nnlink to this lecture; its name does not change.🤖 Generated with Claude Code