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
Validation: a full validationTwo fresh builds with no cache, each executing all 26 notebooks,
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 59 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. The HTML. 13 of 31 pages differ, and no lecture's prose does. The differences are output noise, the same as between any two builds: timings, memory addresses and unseeded draws. The status page differs too, with its build times. |
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is warranted because changing the primary Conda channel alters dependency-resolution precedence across all build environments, requiring confirmation of channel-priority behavior and reproducibility beyond the reported fresh-build validation.
No open issues 🎉
What changed in this PR
Corrects the primary Conda environment to use Anaconda’s official defaults channel instead of the unrelated default user channel, preventing unintended package-source precedence during builds.
Changes:
- Replaces
defaultwithdefaultsinenvironment.yml. - Leaves the separate notebook/Binder environment unchanged for follow-up work.
| File | Description |
|---|---|
| environment.yml | Corrects the Conda channel used by the repository’s build and CI environments. |
Review effort: Lite (adaptive)
Validation addendum: the 15 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, 15 pages differ, not 13. The 2 added pages are in the table below and differ only in figures. The conclusion doesn't change: no page's prose differs. The evidence comment above says 13 of 31 pages differ in output noise; with figures counted it is 15. Here they are, with what differs on each, so the claim can be checked. No page's prose differs. There was no second build of the same main to compare against, so the reason given for each comes from the lecture's own code.
Packages installed inside cells. Three 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