Skip to content

🌐 [translation-sync] [FIX] Add pip install cells for quantecon and jax in lectures that were missing them#208

Merged
mmcky merged 16 commits into
mainfrom
translation-sync-2026-07-26T12-01-11-pr-1006
Jul 27, 2026
Merged

🌐 [translation-sync] [FIX] Add pip install cells for quantecon and jax in lectures that were missing them#208
mmcky merged 16 commits into
mainfrom
translation-sync-2026-07-26T12-01-11-pr-1006

Conversation

@mmcky

@mmcky mmcky commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Automated Translation Sync

This PR contains automated translations from QuantEcon/lecture-python.myst.

Source PR

#1006 - [FIX] Add pip install cells for quantecon and jax in lectures that were missing them

Files Added

  • lectures/olg_adaptive_money.md
  • .translate/state/olg_adaptive_money.md.yml

Files Updated

  • ✏️ lectures/career.md
  • ✏️ .translate/state/career.md.yml
  • ✏️ lectures/ifp_advanced.md
  • ✏️ .translate/state/ifp_advanced.md.yml
  • ✏️ lectures/inventory_dynamics.md
  • ✏️ .translate/state/inventory_dynamics.md.yml
  • ✏️ lectures/jv.md
  • ✏️ .translate/state/jv.md.yml
  • ✏️ lectures/kesten_processes.md
  • ✏️ .translate/state/kesten_processes.md.yml
  • ✏️ lectures/mle.md
  • ✏️ .translate/state/mle.md.yml
  • ✏️ lectures/newton_method.md
  • ✏️ .translate/state/newton_method.md.yml

Details

  • Source Language: en
  • Target Language: zh-cn
  • Model: claude-sonnet-5

This PR was created automatically by the translation action.

Copilot AI review requested due to automatic review settings July 26, 2026 12:01
@mmcky mmcky added action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation labels Jul 26, 2026
@netlify

netlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 72b7763
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a65f71962396b000886faaf
😎 Deploy Preview https://deploy-preview-208--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
Copy Markdown

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-26
Routing: editor — 3 minor finding(s) in gating categories (accuracy/terminology/syntax/diff-check/other)


📝 Translation Quality

Criterion Score
Accuracy 9/10
Fluency 9/10
Terminology 9/10
Formatting 9/10
Overall 9/10

Summary: 本次翻译整体质量很高,专业术语准确且与术语表高度一致,数学公式与代码结构完整保留,未发现语法错误。少数句子的流畅度可以进一步打磨,但均为轻微问题,不影响整体理解和准确性。 术语翻译高度符合参考术语表,如“最大似然估计”“贝尔曼算子”“平稳分布”“牛顿法”等专业词汇准确一致 数学公式、代码块及MyST指令格式完整保留,未出现语法错误 长难句的拆分与重组处理得当,读起来符合学术中文的表达习惯 标题元数据(translation部分)按规范正确添加,章节标题对应准确

Suggestions:

  • [minor · fluency] lectures/career.md — ## 模型 (career choice section): 在“年轻劳动者的目标是最大化折现工资的预期总和”一句后紧跟“且受限于上述的选择限制”,读起来略显生硬,可以更自然地与前句衔接。 → 年轻劳动者的目标是在上述选择限制下,最大化折现工资的预期总和
  • [minor · terminology] lectures/olg_adaptive_money.md — ## 概述: “groping their way by trial and error”被译为“反复试错”,基本准确,但“groping”所含的摸索、尝试性含义略有弱化,可考虑加强语气以贴近原文的探索感。 → 通过反复摸索试错
  • [minor · accuracy] lectures/kesten_processes.md — ### Gibrat定律: “per young person”翻译为“每个年轻人计算”不够精确,此处指“以每个年轻人为单位衡量”的赤字,建议更明确表达单位含义。 → 使得$\bar G$以每个年轻人为单位来衡量
  • [nit · fluency] lectures/mle.md — ## 概述: “这一结论”对应原文“The paper concludes that”,译文中“该论文得出结论”表达略显直译,可以更流畅。 → 该论文的结论是:俄罗斯的亿万富豪数量高于经济因素(如市场规模和税率)所能预测的水平。

🔍 Diff Quality

Check Status
Scope Correct
Position Correct
Structure Preserved
Heading-map Correct
Overall 7.5/10

Summary: The translation sync correctly mirrors positional changes (pip install additions) across all shared files, but the full addition of olg_adaptive_money.md as a brand-new file raises scope concerns since it wasn't a small targeted change like the other files.

Issues:

  • olg_adaptive_money.md was added as a new translation file, but the English source document did not add a new lecture called olg_adaptive_money.md in this diff scope - the source shows it as an already-existing file in the 'Before' state, meaning it should have been an update to an existing translation, not a fresh addition. This suggests scope mismatch: the translation was 'added' (created from scratch) rather than synced/updated.
  • The pip install line changes (adding 'jax', 'quantecon jax', etc.) were correctly synced across career.md, ifp_advanced.md, inventory_dynamics.md, jv.md, kesten_processes.md, mle.md, and newton_method.md, matching the source changes.
  • olg_adaptive_money.md shows +1264/-0 which indicates the entire file is new in the target, whereas the source's olg_adaptive_money.md content already existed in 'Before' state with only translation frontmatter and Chinese content differences expected - this is consistent with first-time translation rather than sync of an edit, which is a scope concern given the task is to verify sync of changes, not full translation creation.

This review was generated automatically by action-translation review mode.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This translation-sync PR updates the zh-cn lecture notebooks to ensure required runtime dependencies are installed via hidden pip install cells (primarily jax, plus quantecon where relevant), aligning the translated lectures with upstream execution requirements.

Changes:

  • Added missing hidden pip install cells for jax (and quantecon in relevant lectures) so notebooks have explicit dependency setup.
  • Added a new translated lecture file lectures/olg_adaptive_money.md (includes pip install quantecon).
  • Updated translation state metadata (.translate/state/*.yml) to reflect the new upstream source SHA, sync date, and tool version.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lectures/olg_adaptive_money.md New translated lecture; includes hidden pip install quantecon for required imports.
lectures/newton_method.md Adds hidden pip install jax cell; minor notebook metadata/formatting normalization.
lectures/mle.md Adds hidden pip install jax cell; normalizes notebook metadata header.
lectures/kesten_processes.md Extends install cell to include jax alongside existing dependencies; minor formatting cleanup.
lectures/jv.md Adds hidden pip install jax cell for JAX-based implementation sections.
lectures/inventory_dynamics.md Adds hidden pip install jax cell for JAX-based simulation code.
lectures/ifp_advanced.md Updates install cell to include jax alongside quantecon.
lectures/career.md Updates install cell to include jax alongside quantecon.
.translate/state/olg_adaptive_money.md.yml New translation state entry for the added lecture.
.translate/state/newton_method.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).
.translate/state/mle.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).
.translate/state/kesten_processes.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).
.translate/state/jv.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).
.translate/state/inventory_dynamics.md.yml Updates translation state (source SHA / sync timestamp / tool version).
.translate/state/ifp_advanced.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).
.translate/state/career.md.yml Updates translation state (source SHA / sync timestamp / mode / tool version).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

@mmcky
mmcky merged commit 1ce6ce4 into main Jul 27, 2026
10 of 12 checks passed
@mmcky
mmcky deleted the translation-sync-2026-07-26T12-01-11-pr-1006 branch July 27, 2026 04:57
mmcky added a commit that referenced this pull request Jul 27, 2026
…he undelivered lecture, backfill the bib

Three fixes, all consequences of the run that produced this PR being
partial (see QuantEcon/action-translation#222).

1. Merge conflict on olg_adaptive_money. Both this PR and #208 created
   lectures/olg_adaptive_money.md and its state file from scratch. Keep
   main's version, which #208 landed: it is built from the newer source
   SHA (a4fbd86) and so carries the pip-install cell, and it matches the
   English source structurally at 62 fenced directives to 62. This
   branch's copy predates #1006 and is one directive short.

2. learning_approximation was never delivered. The run committed a
   _toc.yml entry for it but failed structural parity on the file, so
   the entry pointed at nothing and the build failed with
   "toctree contains reference to nonexisting document", plus four
   unknown-document cross-references. Drop the _toc.yml entry and remove
   the four {doc} references from bounded_rationality.md and
   genetic_classifier.md. The lecture stays untranslated and is tracked
   separately; the references return when it is seeded.

3. quant-econ.bib was missing 21 keys cited by the new lectures, fatal
   under -W. Replace the file wholesale from the English source rather
   than backfilling the cited subset — the target bib is a strict subset
   of source (0 target-only keys), this is the third such backfill, and
   the wholesale copy also closes the three latent keys that are not yet
   cited. Mechanism tracked in QuantEcon/action-translation#117.

Verified: all 355 citations resolve, every _toc.yml entry has a file,
every lecture is reachable from _toc.yml, no dangling {doc} references.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants