Repository navigation
environment.yml: the Anaconda channels are defaults - #81
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 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
Validation: a full validationdp builds in the container
One effect of merging. dp's execution cache is keyed on the hash of |
There was a problem hiding this comment.
🔵 Needs a closer look
Because the change modifies Conda channel precedence and the build environment specification, a human should verify the intended dependency-source policy despite the reported fresh-build validation.
No open issues 🎉
What changed in this PR
Updates the Conda environment specification to use Anaconda’s official defaults channel instead of the unrelated default user channel, preventing unintended package-source precedence.
Changes:
- Replaces
defaultwithdefaultsin the Conda channel list. - Preserves the existing environment configuration and dependencies.
| File | Description |
|---|---|
| environment.yml | Corrects the Conda channel declaration used to resolve the build environment. |
Review effort: Lite (adaptive)
Validation addendum: the 27 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, 27 pages differ, not 13. The 14 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 57 pages differ in output noise; with figures counted it is 27. Here they are, with what differs on each, so the claim can be checked. No page's prose differs, and every one of them also differed when the same main render was compared with the render of #77, another pull request on the same base.
Packages installed inside cells. Five 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. dp's own builds run in a container and never read this file, but anyone who makes the environment from it gets that channel. It is empty today, so the environment resolves fromdefaultsall the same:conda env updateappendsdefaultsto an environment file's channels unless the file listsnodefaults, as the other series' build logs show ("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.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, in the same container image. 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