Repository navigation
Conversation
`channels: - default` names the anaconda.org user channel "default", not Anaconda's own channels, which conda calls `defaults`. That channel is empty today, so the environment resolves from `defaults` all the same (the runner's .condarc adds it after), but conda searches `default` first, so anything uploaded there would take precedence. Found by the review of the lecture monorepo's GPU leg, which copied the line (QuantEcon/lectures#87). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
📖 Netlify Preview Ready!Preview URL: https://pr-1142--sunny-cactus-210e3e.netlify.app Commit: Build Info
|
Validation: a full validationTwo fresh builds with no cache, each executing all 159 notebooks on the series' GPU machine (
The channel. Main's build configured conda with The installed packages are identical. Each build used the same 504 conda packages, every one at the same version and build, and the same 61 pip packages. The package lists are taken from setup-miniconda's own record of the package directories it cached, and from pip's "Successfully installed" lines. Build logs. The same warning lines on both sides, and no Sphinx warning on either. Cell outputs. The warnings and errors in the cell outputs are the same on both sides, page by page, with one count that differs: odu's solver prints one more "Error at iteration" progress line, because its unseeded draws converged in 25 iterations rather than 24, as they vary between any two builds. The HTML. 25 of 176 pages differ, and no lecture's prose does. The differences are output noise, the same as between any two builds: timings, unseeded draws and the clock times in the regression summaries. The status page differs too, with its build times. As a check, the same main build compared with the build of #1140, another pull request on the same base, gave the same pages, apart from ifp_egm, whose only difference here is its NumPy/JAX speed-up, 2.10x against 2.08x. |
There was a problem hiding this comment.
🔵 Needs a closer look
Because the change alters the Conda channel used across all CI, cache, and publish environments, a maintainer should verify the intended supply-chain policy and fresh-build/package-equivalence results before approval.
No open issues 🎉
What changed in this PR
Corrects the primary Conda environment specification to use Anaconda’s official defaults channel instead of the unrelated default user channel.
Changes:
- Replaces
defaultwithdefaultsinenvironment.yml. - Leaves
_notebook_repo/environment.ymlunchanged for a separate follow-up. - No actionable code issues were identified.
| File | Description |
|---|---|
| environment.yml | Updates the Conda channel used by the lecture CI, cache, and publish build environment. |
Review effort: Lite (adaptive)
Validation addendum: the 37 pages that differCorrected on 2026-11-22 at 15:46 UTC, after this was first posted. The comparison behind the evidence comment compared a figure only when the page wraps it in a link, and this series doesn't, so a page whose only difference is a figure wasn't counted. With every figure now compared by content, 37 pages differ, not 25. The 12 added pages are in the table below and differ only in figures; 7 other rows also gained figures they had left out. The conclusion doesn't change: no page's prose differs. The evidence comment above says 25 of 176 pages differ in output noise; with figures counted it is 37. Here they are, with what differs on each, so the claim can be checked. No page's prose differs, and every one of them except ifp_egm also differed when the same main build was compared with the build of #1140.
Packages installed inside cells. Nine pages run |
What
environment.ymlnames the conda channeldefault:channels: - defaultchannels: - defaultsdefaultis the anaconda.org user channel of that name, not Anaconda's own channels, which conda callsdefaults. That channel is empty today, so the environment resolves fromdefaultsall the same:conda env updateappendsdefaultsto an environment file's channels unless the file listsnodefaults, and the build logs list "Channels: - default - defaults". But conda searchesdefaultfirst, so anything ever uploaded there would take precedence. The review of the lecture monorepo's GPU leg found it, which had copied the line (QuantEcon/lectures#87). All six lecture series have it.Not changed here.
_notebook_repo/environment.ymlstill namesdefault. It is the environment publish.yml copies into the notebooks repository that Binder uses, and it is out of date in other ways too (python 3.8), so it needs its own update and a check that Binder still builds. This pull request fixes only the environment the series' own builds use; the others are a separate follow-up.This is part of reporting fixes upstream to each series, their source of truth (QuantEcon/project-monorepo#77).
Validation
Done on 2026-11-22, a full validation: fresh builds with no cache of this pull request and of main, every lecture executed, both green; the installed packages are identical. The evidence is in the comment below.
This changes the build environment's specification, so it needs a person's review.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL