Tags: QuantEcon/lecture-python-programming
Tags
Add language switcher support for fa, fr and zh-cn editions (#490) * Add language switcher config for fa and zh-cn Add `languages` and `current_language` to `html_theme_options` to enable the language switcher (globe icon) and SEO hreflang tags provided by quantecon-book-theme. Main already ships the 0.21.0 theme, so no environment change is needed here. Languages: - English (en) — https://python-programming.quantecon.org - فارسی (fa) — https://quantecon.github.io/lecture-python-programming.fa - 中文 (zh-cn) — https://quantecon.github.io/lecture-python-programming.zh-cn Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Add French to the language switcher The .fr edition went live on 2026-07-17 at the default Pages URL, with no custom domain to reconcile. That resolves the deferral recorded on this PR in July, when French was left out because the site was not yet published and its URL would have been a guess. See the rollout tracker QuantEcon/project-translation#3. Ordered alphabetically by code after English; English stays first because the theme uses languages[0] for the hreflang x-default. Verified with a local build against quantecon-book-theme 0.21.0: the switcher lists all four languages with English active, and the hreflang alternates — including x-default — inject on every page. All 26 shared lecture pages resolve on the .fr site; polars is not yet synced there, as is also the case for .fa and .zh-cn. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Retire the last references to the retired lecture-python repo (#576) * Retire the last references to the retired lecture-python repo pandas_panel read all three of realwage.csv, countries.csv and employ.csv from QuantEcon/lecture-python — a repo last touched in January 2022 — even though this repo already has its own committed copies of all three under _static/lecture_specific/pandas_panel/. Now it reads its own. Verified byte-identical before repointing: each own-repo copy has the same sha256 as the legacy file it replaces, and the new URLs serve those same bytes, so lecture output cannot change. Mirrors QuantEcon/lecture-python.myst#968, which did the same for the myst series. With this, no English lecture source in the Python family points at the retired repo except lecture-stats. Interim by design: P2 of the datasets pilot migrates this trio to QuantEcon/data-lectures and will rewrite these three lines again — but it rewrites them either way, so this costs P2 nothing and stops the lecture depending on an unmaintained repo meanwhile. Part of QuantEcon/meta#337 See QuantEcon/meta#336 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Use this repo's existing raw.githubusercontent URL form Addresses Copilot review on #576. The repoint used github.com/.../raw/refs/heads/main/..., which introduced a third URL form into a repo that already had one: pandas.md and the other own-data reads all use raw.githubusercontent.com/.../main/.... Now all five own-data URLs match. Both forms fetch these files correctly — checked, they parse to identical frames — so this is about consistency, not correctness. Copilot's stated reason (that the redirect makes /raw/ less reliable for read_csv) does not hold; the redirect is real but pandas follows it. The one thing /raw/ buys is LFS safety: raw.githubusercontent.com serves pointer text rather than data for LFS-tracked files. That does not apply here — this repo has no .gitattributes, nothing is LFS — and these three files move to data-lectures under pilot P2 regardless, which is where the LFS-safe form actually matters. Part of QuantEcon/meta#337 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Adopt quantecon/actions/publish-gh-pages for GitHub Pages deploy (#568) * Adopt quantecon/actions/publish-gh-pages for GitHub Pages deploy Replaces the hand-rolled Pages deploy (configure-pages + upload-pages-artifact + deploy-pages) and inline release-asset packaging (tar/sha256/manifest -> softprops/action-gh-release) with a single quantecon/actions/publish-gh-pages@v0.8.0 step, matching the rest of the lecture family. Deploy-step only: the build, notebook sync, PDF/notebook and Netlify steps are unchanged. Part of QuantEcon/lectures#11. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Use bracket notation for the page-url output reference steps.deployment.outputs['page-url'] is the robust form for a hyphenated output key; addresses Copilot review feedback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
⬆️ Bump dawidd6/action-download-artifact from 20 to 21 (#543) Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 20 to 21. - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](dawidd6/action-download-artifact@v20...v21) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-version: '21' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Misc changes to jax lectures (#533) * misc * misc * Fix call to add_tax_pure in jax_intro pure function example Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add lax.fori_loop example and improve jax_intro clarity (#530) - Add lax.fori_loop example to sequential operations section, alongside existing lax.scan version - Update summaries and recommendations to reference both approaches - Improve jax_intro: reorganize intro text, fix block_until_ready style, add Size Experiment subheading, expand immutability explanation, add cross-reference labels - Remove unused import Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Improve clarity and fix errors in Numba lecture (#524) * Improve clarity and fix errors in Numba lecture Fix typos (deficiency, JULIA, That's is, duplicate label), drop Julia from vectorization comparison (Julia uses JIT, not traditional vectorization), replace bootstrap example with clearer function iteration example, compress decorator section into a remark, add fix for global variables gotcha, remove redundant import, and add JAX cross-reference for GPU parallelization. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Fix build: replace invalid {remark} with {admonition}, fix label clash {remark} is not a valid MyST directive — use {admonition} with title "Remark" instead. Also rename (numba)= label to (numba_lecture)= to avoid ambiguity with the document name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PreviousNext