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
✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Validation: a full validationTwo fresh builds with no cache, each executing all 77 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 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. 36 of 85 pages differ, and no lecture's prose does. The differences are output noise, the same as between any two builds: unseeded draws, timings, memory addresses and solver printouts, and figures drawn again with new file names. The status page differs too, with its build times. |
There was a problem hiding this comment.
🔵 Needs a closer look
Because the change modifies shared Conda channel resolution across CI, caching, publishing, and Binder environments, human confirmation is needed for dependency-source policy, reproducibility, and package equivalence.
No open issues 🎉
What changed in this PR
This PR corrects the Conda channel name in the root environment specification so builds use Anaconda’s official defaults channel rather than the unrelated default user channel.
Changes:
- Replaces
defaultwithdefaultsinenvironment.yml.
| File | Description |
|---|---|
| environment.yml | Corrects the Conda channel configuration from default to Anaconda’s official defaults channel. |
Review effort: Lite (adaptive)
Validation addendum: the 51 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, 51 pages differ, not 36. The 15 added pages are in the table below and differ only in figures; 15 other rows, which already listed their figures, now also give the cause of each figure's difference, or say plainly where I haven't found one. The conclusion doesn't change: no page's prose differs. The evidence comment above says 36 of 85 pages differ in output noise; with figures counted it is 51. Here they are, with what differs on each, so the claim can be checked. No page's prose differs. Every one of them also differed when the same main build was compared with the first build of #420, another pull request on the same base, which changes only bibliography text. "Round-off" below means differences around 1e-15, or in the last of 16 or so significant figures.
Three printed results that move. In three places the difference reaches a printed result's shown digits, from lecture code with no random draws behind it, and in each the value varies between builds that share this lecture code and, apart from this pull request, main's environment. gradual_liberalization_network's first year of free trade and tsyrennikov_2013's LE mean RSI: main's build and the second build of #420 give 31 and 0.7676, while this pull request's, #421's and the first build of #420 give 32 and 0.7653. growth_in_dles' steady state, which quantecon computes from the null space of I − A0: main's build prints c, i, k = 5, 0, 0, while this pull request's, #421's and both builds of #420 print 4.999, −0.001, −0.016. Neither #420 nor #421 changes the environment, so these come from the lectures' sensitivity to round-off, not from the channel. Packages installed inside cells. Six 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.ymlandlectures/_static/downloads/amss_environment.ymlstill namedefault. The first 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); the second is a download offered to readers. Each needs its own update and check. 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