Skip to content

environment.yml: the Anaconda channels are defaults - #249

Merged
mmcky merged 1 commit into
mainfrom
maint/conda-defaults
Nov 25, 2026
Merged

mmcky merged 1 commit into
mainfrom
maint/conda-defaults

Conversation

@mmcky

@mmcky mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

What

environment.yml names the conda channel default:

Before After
channels: - default channels: - defaults

default is the anaconda.org user channel of that name, not Anaconda's own channels, which conda calls defaults. That channel is empty today, so the environment resolves from defaults all the same: conda env update appends defaults unless the file lists nodefaults. But conda searches default first, so anything ever uploaded there would take precedence. The six lecture series made this change on 2026-11-25 (for the English programming edition, QuantEcon/lecture-python-programming#669), and QuantEcon/workspace-lectures#69 tracks the rest.

Not changed here. _notebook_repo/environment.yml still names default. It is the environment publish.yml copies into the notebooks repository, as in the series, so it gets its own follow-up there.

Validation

A full validation before merging: fresh cache.yml builds of this branch and of main on the same day, every lecture executed, compared page by page, with the installed packages compared too. The evidence follows in a comment.

This changes the build environment's specification, so it needs a person's review.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX

`default`, singular, is an anaconda.org user channel of that name,
not Anaconda's own channels, which conda calls `defaults`. It is
empty today, so builds resolve from `defaults` all the same, but
conda searches `default` first, so anything uploaded there would take
precedence. The six series made this change on 2026-11-25 (for the
English programming edition, QuantEcon/lecture-python-programming#669).
_notebook_repo/environment.yml, if present, is left for its own
follow-up, as there.

See QuantEcon/workspace-lectures#69.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX
@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sparkly-moxie-de1f0e ready!

Name Link
🔨 Latest commit 2c91277
🔍 Latest deploy log https://app.netlify.com/projects/sparkly-moxie-de1f0e/deploys/6b0768147ecc92b09cae6e97
😎 Deploy Preview https://deploy-preview-249--sparkly-moxie-de1f0e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for adorable-cucurucho-69162b ready!

Name Link
🔨 Latest commit 2c91277
🔍 Latest deploy log https://app.netlify.com/projects/adorable-cucurucho-69162b/deploys/6b076814d046fc72137570f0
😎 Deploy Preview https://deploy-preview-249--adorable-cucurucho-69162b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

@mmcky

mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Full validation: default → defaults

Fresh full builds of cache.yml on 2026-11-25 (UTC), every lecture executed, no build cache:

Side Run Commit Result
main (- default) 45717686336 94c1a5f success on attempt 2 (see below)
this branch (- defaults) 45717690268 2c91277 success
  • Installed packages: identical. Both builds used the same 504 conda packages, each at the same version and build (from setup-miniconda's record of the package directories it cached), and the same pip "Successfully installed" line.
  • Build warnings: identical on both sides.
  • Pages: 15 pages, 4 with any difference. status.html differs only in timings. The other three differ only in figure images (kolmogorov_bwd figure 1, memoryless 2 and 3, poisson 4), and the same figures differ between two builds of main from the same sources a week apart (scheduled runs 43795747430 and 45103603491). They come from random simulations, so this is noise.

The main build's first attempt failed, because of the channel this PR removes. Setup Anaconda stopped with CondaHTTPError: HTTP 503 Service Unavailable for url <https://conda.anaconda.org/default/linux-64/repodata.json>, the user channel default names. The same failure hit the fr edition's main build 14 seconds later. Builds that list only defaults don't contact that server, and none of the three branch builds hit an error. Attempt 2 of the same run succeeded. So besides letting a stranger's uploads take precedence, the default line made builds depend on an unrelated channel's server staying up.

@mmcky
mmcky merged commit 6a01f26 into main Nov 25, 2026
11 checks passed
@mmcky
mmcky deleted the maint/conda-defaults branch November 25, 2026 23:16

This branch was successfully deployed

1 active deployment
pull request — 2c912770 Deployed Nov 25, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant