Skip to content

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

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
Contributor

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.

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
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-117--verdant-toffee-3261a8.netlify.app

Commit: 25c535d


Build Info

@mmcky

mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Contributor 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) 45717694377 cac54c3 success on attempt 2 (see below)
this branch (- defaults) 45717699268 25c535d 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 two pip "Successfully installed" lines. Cell-level installs (pandas, polars) fetch the same packages at the same versions; only pip's download-progress text differs.
  • Build warnings: identical on both sides.
  • Pages: 31 pages, 17 with any difference. status.html differs only in timings. The others differ only in cell output (timings, memory addresses, download progress), and they are the same pages that differ between two builds of identical sources in the programming translations. numpy_vs_numba_vs_jax's pre-existing DeprecationWarning: backend and device argument on jit is deprecated is on both sides alike; only the ipykernel temp path differs.

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 continuous_time_mcs's main build. 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 37231b6 into main Nov 25, 2026
4 checks passed
@mmcky
mmcky deleted the maint/conda-defaults branch November 25, 2026 23:17
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