Skip to content

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Dec 22, 2025

Summary

Upgrades build software and dependencies to align with lecture-python-intro.

Changes

environment.yml

  • Upgrade anaconda to 2025.12
  • Upgrade quantecon-book-theme to 0.15.1
  • Add jupyter-book version constraint (<2.0)

.github/dependabot.yml

  • Add conda ecosystem with weekly schedule
  • Add ignore rule for jupyter-book >= 2.0

.github/workflows/ci.yml

  • Temporarily disable build cache for full execution check

lectures/_config.yml

  • Add nb_merge_streams: true
  • Add path_to_docs: lectures

Reference

- Upgrade anaconda to 2025.12
- Upgrade quantecon-book-theme to 0.15.1
- Add jupyter-book version constraint (<2.0)
- Configure Dependabot for conda ecosystem with jupyter-book restriction
- Add nb_merge_streams and path_to_docs to _config.yml
- Temporarily disable build cache for full execution check
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 576cbc1
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/694a0aa97e0b8500088ec294
😎 Deploy Preview https://deploy-preview-97--astonishing-narwhal-a8fc64.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

…precated JAX API, fix undefined variable

- Add 'import matplotlib as mpl' to 7 files that use mpl.font_manager
- Fix docstring indentation in ogm.py (7 spaces -> 8 spaces)
- Update deprecated jax.lib.xla_bridge to jax.extend.backend in back_prop.md
- Fix undefined variable '失败者列表' -> 'loser_list' in house_auction.md
@mmcky
Copy link
Contributor Author

mmcky commented Dec 23, 2025

Build Error Fixes

Fixed all 14 build errors across 11 files:

1. Missing import matplotlib as mpl (7 files)

Added the missing import before mpl.font_manager.fontManager.addfont() usage:

  • lectures/imp_sample.md
  • lectures/likelihood_bayes.md
  • lectures/likelihood_ratio_process.md
  • lectures/likelihood_ratio_process_2.md
  • lectures/likelihood_var.md
  • lectures/mix_model.md
  • lectures/wald_friedman_2.md

2. IndentationError (1 file, affects 3 notebooks)

Fixed docstring indentation in lectures/_static/lecture_specific/optgrowth_fast/ogm.py:

  • Changed line 37 from 7 spaces to 8 spaces for "生产函数" docstring
  • This fixes errors in: coleman_policy_iter.md, egm_policy_iter.md, optgrowth_fast.md

3. Deprecated JAX API (1 file)

Updated lectures/back_prop.md to use current JAX API:

  • Replaced from jax.lib import xla_bridge with import jax.extend
  • Replaced xla_bridge.get_backend().platform with jax.extend.backend.get_backend().platform

4. Undefined Variable (1 file)

Fixed lectures/house_auction.md:

  • Changed 失败者列表 (Chinese variable name) to loser_list (defined in previous cell)

Note: Hardware-dependent packages (torch, POT, pyro-ppl, numpyro) are installed via pip index versions sphinx-togglebutton install commands in the notebooks themselves, not in environment.yml.

Python version should be constrained by the anaconda distribution version
specified in environment.yml, not updated independently by dependabot.
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.

2 participants