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 taupe-gaufre-c4e660 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 54 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. 20 of 66 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.
🟡 Changes recommended
An active moderate issue remains because the published Binder notebook environment still declares the user channel, so the fix does not cover all affected environments.
1 open issue
What changed in this PR
Updates the root Conda environment to use Anaconda’s official defaults channel instead of the unrelated default user channel. The separately published Binder environment still uses default.
Changes:
- Replaces
defaultwithdefaultsin the root environment specification. - Preserves the existing package and Python constraints.
- Identifies the notebook environment as still requiring the corresponding channel update.
| File | Description |
|---|---|
| environment.yml | Changes the root Conda channel from default to Anaconda’s official defaults channel for CI and build workflows. |
Review effort: Lite (adaptive)
| name: quantecon | ||
| channels: | ||
| - default | ||
| - defaults |
There was a problem hiding this comment.
Right that _notebook_repo/environment.yml still names default; this pull request is scoped to the build environment on purpose, and its description now says so. That file is the environment publish.yml copies into lecture-python-intro.notebooks for Binder, and it is out of date in other ways too (python 3.10 with anaconda 2023.03), so it needs its own update and a check that Binder still builds, rather than a one-word change here. The same holds in the other series' _notebook_repo; it is recorded as a separate follow-up for the notebook environments.
Validation addendum: the 20 pages that differThe evidence comment above says 20 of 66 pages differ in output noise. 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 build was compared with the build of #875, 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. 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.10, anaconda 2023.03), 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