diff --git a/.github/workflows/review-translations.yml b/.github/workflows/review-translations.yml index 775bfca..3c9ce1a 100644 --- a/.github/workflows/review-translations.yml +++ b/.github/workflows/review-translations.yml @@ -15,7 +15,7 @@ jobs: with: fetch-depth: 2 - - uses: QuantEcon/action-translation@v0.12.4 + - uses: QuantEcon/action-translation@v0.13.0 with: mode: review source-repo: QuantEcon/lecture-python-programming diff --git a/.translate/state/about_py.md.yml b/.translate/state/about_py.md.yml index e4d8481..a6c968e 100644 --- a/.translate/state/about_py.md.yml +++ b/.translate/state/about_py.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 3 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/debugging.md.yml b/.translate/state/debugging.md.yml index 260508e..d2d6f11 100644 --- a/.translate/state/debugging.md.yml +++ b/.translate/state/debugging.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 4 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/functions.md.yml b/.translate/state/functions.md.yml index 6e8768a..f35108f 100644 --- a/.translate/state/functions.md.yml +++ b/.translate/state/functions.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 7 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/getting_started.md.yml b/.translate/state/getting_started.md.yml index fad784e..de1c9d6 100644 --- a/.translate/state/getting_started.md.yml +++ b/.translate/state/getting_started.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 7 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/intro.md.yml b/.translate/state/intro.md.yml index 1514e24..ad34e69 100644 --- a/.translate/state/intro.md.yml +++ b/.translate/state/intro.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 0 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/jax_intro.md.yml b/.translate/state/jax_intro.md.yml index 4bc796b..baa2850 100644 --- a/.translate/state/jax_intro.md.yml +++ b/.translate/state/jax_intro.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 6 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/matplotlib.md.yml b/.translate/state/matplotlib.md.yml index 6bf94cf..5fda8c8 100644 --- a/.translate/state/matplotlib.md.yml +++ b/.translate/state/matplotlib.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 5 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/names.md.yml b/.translate/state/names.md.yml index 4f63811..3133222 100644 --- a/.translate/state/names.md.yml +++ b/.translate/state/names.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 9 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/need_for_speed.md.yml b/.translate/state/need_for_speed.md.yml index 1521e70..2605926 100644 --- a/.translate/state/need_for_speed.md.yml +++ b/.translate/state/need_for_speed.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 5 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/numba.md.yml b/.translate/state/numba.md.yml index 13e16ff..c5f1f07 100644 --- a/.translate/state/numba.md.yml +++ b/.translate/state/numba.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 8 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/numpy.md.yml b/.translate/state/numpy.md.yml index 13e16ff..0f25ed9 100644 --- a/.translate/state/numpy.md.yml +++ b/.translate/state/numpy.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 8 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/numpy_vs_numba_vs_jax.md.yml b/.translate/state/numpy_vs_numba_vs_jax.md.yml index 9a1fc9e..61c6ef5 100644 --- a/.translate/state/numpy_vs_numba_vs_jax.md.yml +++ b/.translate/state/numpy_vs_numba_vs_jax.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 2 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/oop_intro.md.yml b/.translate/state/oop_intro.md.yml index e634af0..08c9eb1 100644 --- a/.translate/state/oop_intro.md.yml +++ b/.translate/state/oop_intro.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 6 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/pandas.md.yml b/.translate/state/pandas.md.yml index 0abe0a8..553d0f9 100644 --- a/.translate/state/pandas.md.yml +++ b/.translate/state/pandas.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 5 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/pandas_panel.md.yml b/.translate/state/pandas_panel.md.yml index e634af0..08c9eb1 100644 --- a/.translate/state/pandas_panel.md.yml +++ b/.translate/state/pandas_panel.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 6 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/python_advanced_features.md.yml b/.translate/state/python_advanced_features.md.yml index e35bd4a..6a88314 100644 --- a/.translate/state/python_advanced_features.md.yml +++ b/.translate/state/python_advanced_features.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-25" model: claude-sonnet-4-6 mode: UPDATE section-count: 7 -tool-version: 0.12.4 +tool-version: 0.13.0 diff --git a/.translate/state/python_by_example.md.yml b/.translate/state/python_by_example.md.yml index 32c8e5f..7e77e38 100644 --- a/.translate/state/python_by_example.md.yml +++ b/.translate/state/python_by_example.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 6 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/python_essentials.md.yml b/.translate/state/python_essentials.md.yml index fad784e..b763162 100644 --- a/.translate/state/python_essentials.md.yml +++ b/.translate/state/python_essentials.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 7 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/python_oop.md.yml b/.translate/state/python_oop.md.yml index 9f16506..7987754 100644 --- a/.translate/state/python_oop.md.yml +++ b/.translate/state/python_oop.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 5 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/scipy.md.yml b/.translate/state/scipy.md.yml index 2d40aac..39cf8e0 100644 --- a/.translate/state/scipy.md.yml +++ b/.translate/state/scipy.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 8 -tool-version: 0.11.1 +tool-version: 0.13.1 diff --git a/.translate/state/status.md.yml b/.translate/state/status.md.yml index ae1e934..3dac5f2 100644 --- a/.translate/state/status.md.yml +++ b/.translate/state/status.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 0 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/sympy.md.yml b/.translate/state/sympy.md.yml index dcd5728..ad25a67 100644 --- a/.translate/state/sympy.md.yml +++ b/.translate/state/sympy.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 7 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/troubleshooting.md.yml b/.translate/state/troubleshooting.md.yml index e97da5c..cd6e4da 100644 --- a/.translate/state/troubleshooting.md.yml +++ b/.translate/state/troubleshooting.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 2 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/workspace.md.yml b/.translate/state/workspace.md.yml index 8060e2f..90bbc67 100644 --- a/.translate/state/workspace.md.yml +++ b/.translate/state/workspace.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 6 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/.translate/state/writing_good_code.md.yml b/.translate/state/writing_good_code.md.yml index a25a79b..d4c71f0 100644 --- a/.translate/state/writing_good_code.md.yml +++ b/.translate/state/writing_good_code.md.yml @@ -3,4 +3,4 @@ synced-at: "2026-03-20" model: claude-sonnet-4-6 mode: NEW section-count: 5 -tool-version: 0.11.1 +tool-version: 0.13.0 diff --git a/lectures/about_py.md b/lectures/about_py.md index 09bf5c1..f9d4217 100644 --- a/lectures/about_py.md +++ b/lectures/about_py.md @@ -7,23 +7,25 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Overview::Can't I Just Use LLMs?: 我就不能直接使用大语言模型吗? - Overview::Isn't MATLAB Better?: MATLAB 不是更好吗? - Introducing Python: Python 简介 - Introducing Python::Common Uses: 常见用途 - Introducing Python::Relative Popularity: 相对流行度 - Introducing Python::Features: 特性 - Introducing Python::Syntax and Design: 语法与设计 - Introducing Python::The AI Connection: 与人工智能的关联 - Scientific Programming with Python: 使用 Python 进行科学编程 - Scientific Programming with Python::NumPy: NumPy - Scientific Programming with Python::NumPy Alternatives: NumPy 的替代方案 - Scientific Programming with Python::SciPy: SciPy - Scientific Programming with Python::Graphics: 图形可视化 - Scientific Programming with Python::Networks and Graphs: 网络与图 - Scientific Programming with Python::Other Scientific Libraries: 其他科学库 +translation: + title: 关于本系列讲座 + headings: + Overview: 概述 + Overview::Can't I Just Use LLMs?: 我就不能直接使用大语言模型吗? + Overview::Isn't MATLAB Better?: MATLAB 不是更好吗? + Introducing Python: Python 简介 + Introducing Python::Common Uses: 常见用途 + Introducing Python::Relative Popularity: 相对流行度 + Introducing Python::Features: 特性 + Introducing Python::Syntax and Design: 语法与设计 + Introducing Python::The AI Connection: 与人工智能的关联 + Scientific Programming with Python: 使用 Python 进行科学编程 + Scientific Programming with Python::NumPy: NumPy + Scientific Programming with Python::NumPy Alternatives: NumPy 的替代方案 + Scientific Programming with Python::SciPy: SciPy + Scientific Programming with Python::Graphics: 图形可视化 + Scientific Programming with Python::Networks and Graphs: 网络与图 + Scientific Programming with Python::Other Scientific Libraries: 其他科学库 --- (about_py)= diff --git a/lectures/debugging.md b/lectures/debugging.md index 44cfbea..4fcdd1d 100644 --- a/lectures/debugging.md +++ b/lectures/debugging.md @@ -7,18 +7,20 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Debugging: 调试 - Debugging::The `debug` Magic: '`debug` 魔法命令' - Debugging::Setting a Break Point: 设置断点 - Debugging::Other Useful Magics: 其他有用的魔法命令 - Handling Errors: 错误处理 - Handling Errors::Errors in Python: Python 中的错误 - Handling Errors::Assertions: 断言 - Handling Errors::Handling Errors During Runtime: 运行时错误处理 - Handling Errors::Handling Errors During Runtime::Catching Exceptions: 捕获异常 - Exercises: 练习 +translation: + title: 调试与错误处理 + headings: + Overview: 概述 + Debugging: 调试 + Debugging::The `debug` Magic: '`debug` 魔法命令' + Debugging::Setting a Break Point: 设置断点 + Debugging::Other Useful Magics: 其他有用的魔法命令 + Handling Errors: 错误处理 + Handling Errors::Errors in Python: Python 中的错误 + Handling Errors::Assertions: 断言 + Handling Errors::Handling Errors During Runtime: 运行时错误处理 + Handling Errors::Handling Errors During Runtime::Catching Exceptions: 捕获异常 + Exercises: 练习 --- (debugging)= diff --git a/lectures/functions.md b/lectures/functions.md index 6de4b60..cc4ad28 100644 --- a/lectures/functions.md +++ b/lectures/functions.md @@ -7,23 +7,25 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Function Basics: 函数基础 - Function Basics::Built-In Functions: 内置函数 - Function Basics::Third Party Functions: 第三方函数 - Defining Functions: 定义函数 - Defining Functions::Basic Syntax: 基本语法 - Defining Functions::Keyword Arguments: 关键字参数 - Defining Functions::The Flexibility of Python Functions: Python 函数的灵活性 - 'Defining Functions::One-Line Functions: `lambda`': 单行函数:`lambda` - Defining Functions::Why Write Functions?: 为什么要编写函数? - Applications: 应用 - Applications::Random Draws: 随机抽取 - Applications::Adding Conditions: 添加条件 - Recursive Function Calls (Advanced): 递归函数调用(进阶) - Exercises: 练习 - Advanced Exercises: 进阶练习 +translation: + title: 函数 + headings: + Overview: 概述 + Function Basics: 函数基础 + Function Basics::Built-In Functions: 内置函数 + Function Basics::Third Party Functions: 第三方函数 + Defining Functions: 定义函数 + Defining Functions::Basic Syntax: 基本语法 + Defining Functions::Keyword Arguments: 关键字参数 + Defining Functions::The Flexibility of Python Functions: Python 函数的灵活性 + 'Defining Functions::One-Line Functions: `lambda`': 单行函数:`lambda` + Defining Functions::Why Write Functions?: 为什么要编写函数? + Applications: 应用 + Applications::Random Draws: 随机抽取 + Applications::Adding Conditions: 添加条件 + Recursive Function Calls (Advanced): 递归函数调用(进阶) + Exercises: 练习 + Advanced Exercises: 进阶练习 --- (functions)= diff --git a/lectures/getting_started.md b/lectures/getting_started.md index c37520e..a23a471 100644 --- a/lectures/getting_started.md +++ b/lectures/getting_started.md @@ -7,33 +7,35 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Python in the Cloud: 云端 Python - Local Install: 本地安装 - Local Install::The Anaconda Distribution: Anaconda 发行版 - Local Install::Installing Anaconda: 安装 Anaconda - Local Install::Updating `conda`: 更新 `conda` - '{index}`Jupyter Notebooks `': '{index}`Jupyter 笔记本 `' - '{index}`Jupyter Notebooks `::Starting the Jupyter Notebook': 启动 Jupyter 笔记本 - '{index}`Jupyter Notebooks `::Notebook Basics': 笔记本基础 - '{index}`Jupyter Notebooks `::Notebook Basics::Running Cells': 运行单元格 - '{index}`Jupyter Notebooks `::Notebook Basics::Modal Editing': 模式编辑 - '{index}`Jupyter Notebooks `::Notebook Basics::Inserting Unicode (e.g., Greek Letters)': 插入 Unicode(例如希腊字母) - '{index}`Jupyter Notebooks `::Notebook Basics::A Test Program': 测试程序 - '{index}`Jupyter Notebooks `::Working with the Notebook': 使用笔记本 - '{index}`Jupyter Notebooks `::Working with the Notebook::Tab Completion': Tab 补全 - '{index}`Jupyter Notebooks `::Working with the Notebook::On-Line Help': 在线帮助 - '{index}`Jupyter Notebooks `::Working with the Notebook::Other Content': 其他内容 - '{index}`Jupyter Notebooks `::Debugging Code': 调试代码 - '{index}`Jupyter Notebooks `::Sharing Notebooks': 共享笔记本 - '{index}`Jupyter Notebooks `::QuantEcon Notes': QuantEcon Notes - Installing Libraries: 安装库 - Working with Python Files: 使用 Python 文件 - Working with Python Files::Editing and Execution: 编辑与执行 - 'Working with Python Files::Editing and Execution::Option 1: {index}`JupyterLab `': '选项 1:{index}`JupyterLab `' - 'Working with Python Files::Editing and Execution::Option 2: Using a Text Editor': 选项 2:使用文本编辑器 - Exercises: 练习 +translation: + title: 入门指南 + headings: + Overview: 概述 + Python in the Cloud: 云端 Python + Local Install: 本地安装 + Local Install::The Anaconda Distribution: Anaconda 发行版 + Local Install::Installing Anaconda: 安装 Anaconda + Local Install::Updating `conda`: 更新 `conda` + Jupyter Notebooks: Jupyter 笔记本 + Jupyter Notebooks::Starting the Jupyter Notebook: 启动 Jupyter 笔记本 + Jupyter Notebooks::Notebook Basics: 笔记本基础 + Jupyter Notebooks::Notebook Basics::Running Cells: 运行单元格 + Jupyter Notebooks::Notebook Basics::Modal Editing: 模式编辑 + Jupyter Notebooks::Notebook Basics::Inserting Unicode (e.g., Greek Letters): 插入 Unicode(例如希腊字母) + Jupyter Notebooks::Notebook Basics::A Test Program: 测试程序 + Jupyter Notebooks::Working with the Notebook: 使用笔记本 + Jupyter Notebooks::Working with the Notebook::Tab Completion: Tab 补全 + Jupyter Notebooks::Working with the Notebook::On-Line Help: 在线帮助 + Jupyter Notebooks::Working with the Notebook::Other Content: 其他内容 + Jupyter Notebooks::Debugging Code: 调试代码 + Jupyter Notebooks::Sharing Notebooks: 共享笔记本 + Jupyter Notebooks::QuantEcon Notes: QuantEcon Notes + Installing Libraries: 安装库 + Working with Python Files: 使用 Python 文件 + Working with Python Files::Editing and Execution: 编辑与执行 + 'Working with Python Files::Editing and Execution::Option 1: JupyterLab': 选项 1:JupyterLab + 'Working with Python Files::Editing and Execution::Option 2: Using a Text Editor': 选项 2:使用文本编辑器 + Exercises: 练习 --- (getting_started)= diff --git a/lectures/intro.md b/lectures/intro.md index 7445362..4e0606d 100644 --- a/lectures/intro.md +++ b/lectures/intro.md @@ -7,6 +7,8 @@ kernelspec: display_name: Python 3 language: python name: python3 +translation: + title: 面向经济学与金融学的Python编程 --- # 面向经济学与金融学的Python编程 diff --git a/lectures/jax_intro.md b/lectures/jax_intro.md index 06ac7ff..ce8bbea 100644 --- a/lectures/jax_intro.md +++ b/lectures/jax_intro.md @@ -9,34 +9,36 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -heading-map: - JAX as a NumPy Replacement: JAX 作为 NumPy 的替代品 - JAX as a NumPy Replacement::Similarities: 相似之处 - JAX as a NumPy Replacement::Differences: 差异 - JAX as a NumPy Replacement::Differences::Precision: 精度 - JAX as a NumPy Replacement::Differences::Immutability: 不可变性 - JAX as a NumPy Replacement::Differences::A workaround: 变通方法 - Functional Programming: 函数式编程 - Functional Programming::Pure functions: 纯函数 - Functional Programming::Examples: 示例 - Random numbers: 随机数 - Random numbers::Random number generation: 随机数生成 - Random numbers::Why explicit random state?: 为什么要显式随机状态? - Random numbers::Why explicit random state?::NumPy's approach: NumPy 的方法 - Random numbers::Why explicit random state?::JAX's approach: JAX 的方法 - JIT compilation: JIT 编译 - JIT compilation::A simple example: 一个简单的示例 - JIT compilation::A simple example::With NumPy: 使用 NumPy - JIT compilation::A simple example::With JAX: 使用 JAX - JIT compilation::A simple example::Changing array sizes: 更改数组大小 - JIT compilation::Evaluating a more complicated function: 评估更复杂的函数 - JIT compilation::Evaluating a more complicated function::With NumPy: 使用 NumPy - JIT compilation::Evaluating a more complicated function::With JAX: 使用 JAX - JIT compilation::Compiling the Whole Function: 编译整个函数 - JIT compilation::Compiling non-pure functions: 编译非纯函数 - JIT compilation::Summary: 总结 - Gradients: 梯度 - Exercises: 练习 +translation: + title: JAX + headings: + JAX as a NumPy Replacement: JAX 作为 NumPy 的替代品 + JAX as a NumPy Replacement::Similarities: 相似之处 + JAX as a NumPy Replacement::Differences: 差异 + JAX as a NumPy Replacement::Differences::Precision: 精度 + JAX as a NumPy Replacement::Differences::Immutability: 不可变性 + JAX as a NumPy Replacement::Differences::A workaround: 变通方法 + Functional Programming: 函数式编程 + Functional Programming::Pure functions: 纯函数 + Functional Programming::Examples: 示例 + Random numbers: 随机数 + Random numbers::Random number generation: 随机数生成 + Random numbers::Why explicit random state?: 为什么要显式随机状态? + Random numbers::Why explicit random state?::NumPy's approach: NumPy 的方法 + Random numbers::Why explicit random state?::JAX's approach: JAX 的方法 + JIT compilation: JIT 编译 + JIT compilation::A simple example: 一个简单的示例 + JIT compilation::A simple example::With NumPy: 使用 NumPy + JIT compilation::A simple example::With JAX: 使用 JAX + JIT compilation::A simple example::Changing array sizes: 更改数组大小 + JIT compilation::Evaluating a more complicated function: 评估更复杂的函数 + JIT compilation::Evaluating a more complicated function::With NumPy: 使用 NumPy + JIT compilation::Evaluating a more complicated function::With JAX: 使用 JAX + JIT compilation::Compiling the Whole Function: 编译整个函数 + JIT compilation::Compiling non-pure functions: 编译非纯函数 + JIT compilation::Summary: 总结 + Gradients: 梯度 + Exercises: 练习 --- # JAX diff --git a/lectures/matplotlib.md b/lectures/matplotlib.md index 4c179c8..ddb479c 100644 --- a/lectures/matplotlib.md +++ b/lectures/matplotlib.md @@ -7,21 +7,23 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Overview::Matplotlib's Split Personality: Matplotlib 的双重性格 - The APIs: API 接口 - The APIs::The MATLAB-style API: MATLAB 风格 API - The APIs::The Object-Oriented API: 面向对象 API - The APIs::Tweaks: 调整 - More Features: 更多特性 - More Features::Multiple Plots on One Axis: 在同一坐标轴上绘制多个图形 - More Features::Multiple Subplots: 多个子图 - More Features::3D Plots: 三维图形 - More Features::A Customizing Function: 自定义函数 - More Features::Style Sheets: 样式表 - Further Reading: 延伸阅读 - Exercises: 练习 +translation: + title: Matplotlib + headings: + Overview: 概述 + Overview::Matplotlib's Split Personality: Matplotlib 的双重性格 + The APIs: API 接口 + The APIs::The MATLAB-style API: MATLAB 风格 API + The APIs::The Object-Oriented API: 面向对象 API + The APIs::Tweaks: 调整 + More Features: 更多特性 + More Features::Multiple Plots on One Axis: 在同一坐标轴上绘制多个图形 + More Features::Multiple Subplots: 多个子图 + More Features::3D Plots: 三维图形 + More Features::A Customizing Function: 自定义函数 + More Features::Style Sheets: 样式表 + Further Reading: 延伸阅读 + Exercises: 练习 --- (matplotlib)= diff --git a/lectures/names.md b/lectures/names.md index 5853837..8f14ca6 100644 --- a/lectures/names.md +++ b/lectures/names.md @@ -7,17 +7,19 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Variable Names in Python: Python 中的变量名称 - Namespaces: 命名空间 - Viewing Namespaces: 查看命名空间 - Interactive Sessions: 交互式会话 - The Global Namespace: 全局命名空间 - Local Namespaces: 局部命名空间 - The `__builtins__` Namespace: '`__builtins__` 命名空间' - Name Resolution: 名称解析 - 'Name Resolution::{index}`Mutable ` Versus {index}`Immutable ` Parameters': '{index}`可变 ` 与 {index}`不可变 ` 参数' +translation: + title: 名称与命名空间 + headings: + Overview: 概述 + Variable Names in Python: Python 中的变量名称 + Namespaces: 命名空间 + Viewing Namespaces: 查看命名空间 + Interactive Sessions: 交互式会话 + The Global Namespace: 全局命名空间 + Local Namespaces: 局部命名空间 + The `__builtins__` Namespace: '`__builtins__` 命名空间' + Name Resolution: 名称解析 + Name Resolution::Mutable Versus Immutable Parameters: 可变 与 不可变 参数 --- (oop_names)= diff --git a/lectures/need_for_speed.md b/lectures/need_for_speed.md index 6416a76..36ed987 100644 --- a/lectures/need_for_speed.md +++ b/lectures/need_for_speed.md @@ -7,36 +7,38 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Major Scientific Libraries: 主要科学库 - Major Scientific Libraries::Why do we need them?: 为什么需要它们? - Major Scientific Libraries::Python's Scientific Ecosystem: Python 的科学生态系统 - Pure Python is slow: 纯 Python 速度慢 - Pure Python is slow::High vs low level code: 高级语言与低级语言 - Pure Python is slow::Where are the bottlenecks?: 瓶颈在哪里? - Pure Python is slow::Where are the bottlenecks?::Dynamic typing: 动态类型 - Pure Python is slow::Where are the bottlenecks?::Static types: 静态类型 - Pure Python is slow::Data Access: 数据访问 - Pure Python is slow::Data Access::Summing with Compiled Code: 使用编译代码求和 - Pure Python is slow::Data Access::Summing in Pure Python: 在纯 Python 中求和 - Pure Python is slow::Summary: 总结 - Accelerating Python: 加速 Python - 'Accelerating Python::{index}`Vectorization `': '{index}`向量化 `' - Accelerating Python::Vectorization vs for pure Python loops: 向量化 vs 纯 Python 循环 - Accelerating Python::JIT compilers: JIT 编译器 - Parallelization: 并行化 - Parallelization::Parallelization on CPUs: CPU 上的并行化 - Parallelization::Parallelization on CPUs::Multiprocessing: 多进程 - Parallelization::Parallelization on CPUs::Multithreading: 多线程 - Parallelization::Parallelization on CPUs::Advantages and Disadvantages: 优缺点 - Parallelization::Hardware Accelerators: 硬件加速器 - Parallelization::Hardware Accelerators::GPUs and TPUs: GPU 和 TPU - Parallelization::Hardware Accelerators::Why TPUs/GPUs Matter: 为何 TPU/GPU 至关重要 - Parallelization::Single GPUs vs GPU Servers: 单 GPU 与 GPU 服务器 - Parallelization::Single GPUs vs GPU Servers::Single GPU Systems: 单 GPU 系统 - Parallelization::Single GPUs vs GPU Servers::Multi-GPU Servers: 多 GPU 服务器 - Parallelization::Summary: 总结 +translation: + title: 科学计算中的 Python + headings: + Overview: 概述 + Major Scientific Libraries: 主要科学库 + Major Scientific Libraries::Why do we need them?: 为什么需要它们? + Major Scientific Libraries::Python's Scientific Ecosystem: Python 的科学生态系统 + Pure Python is slow: 纯 Python 速度慢 + Pure Python is slow::High vs low level code: 高级语言与低级语言 + Pure Python is slow::Where are the bottlenecks?: 瓶颈在哪里? + Pure Python is slow::Where are the bottlenecks?::Dynamic typing: 动态类型 + Pure Python is slow::Where are the bottlenecks?::Static types: 静态类型 + Pure Python is slow::Data Access: 数据访问 + Pure Python is slow::Data Access::Summing with Compiled Code: 使用编译代码求和 + Pure Python is slow::Data Access::Summing in Pure Python: 在纯 Python 中求和 + Pure Python is slow::Summary: 总结 + Accelerating Python: 加速 Python + Accelerating Python::Vectorization: 向量化 + Accelerating Python::Vectorization vs for pure Python loops: 向量化 vs 纯 Python 循环 + Accelerating Python::JIT compilers: JIT 编译器 + Parallelization: 并行化 + Parallelization::Parallelization on CPUs: CPU 上的并行化 + Parallelization::Parallelization on CPUs::Multiprocessing: 多进程 + Parallelization::Parallelization on CPUs::Multithreading: 多线程 + Parallelization::Parallelization on CPUs::Advantages and Disadvantages: 优缺点 + Parallelization::Hardware Accelerators: 硬件加速器 + Parallelization::Hardware Accelerators::GPUs and TPUs: GPU 和 TPU + Parallelization::Hardware Accelerators::Why TPUs/GPUs Matter: 为何 TPU/GPU 至关重要 + Parallelization::Single GPUs vs GPU Servers: 单 GPU 与 GPU 服务器 + Parallelization::Single GPUs vs GPU Servers::Single GPU Systems: 单 GPU 系统 + Parallelization::Single GPUs vs GPU Servers::Multi-GPU Servers: 多 GPU 服务器 + Parallelization::Summary: 总结 --- (speed)= diff --git a/lectures/numba.md b/lectures/numba.md index e793be5..73be1d8 100644 --- a/lectures/numba.md +++ b/lectures/numba.md @@ -9,19 +9,21 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -heading-map: - Overview: 概述 - '{index}`Compiling Functions `': '{index}`编译函数 `' - '{index}`Compiling Functions `::An Example': 一个示例 - '{index}`Compiling Functions `::How and When it Works': 工作原理及适用场景 - Decorator Notation: 装饰器语法 - Type Inference: 类型推断 - Compiling Classes: 编译类 - Dangers and Limitations: 危险与局限 - Dangers and Limitations::Limitations: 局限性 - 'Dangers and Limitations::A Gotcha: Global Variables': 一个陷阱:全局变量 - Multithreaded Loops in Numba: Numba 中的多线程循环 - Exercises: 练习 +translation: + title: Numba + headings: + Overview: 概述 + Compiling Functions: 编译函数 + Compiling Functions::An Example: 一个示例 + Compiling Functions::How and When it Works: 工作原理及适用场景 + Decorator Notation: 装饰器语法 + Type Inference: 类型推断 + Compiling Classes: 编译类 + Dangers and Limitations: 危险与局限 + Dangers and Limitations::Limitations: 局限性 + 'Dangers and Limitations::A Gotcha: Global Variables': 一个陷阱:全局变量 + Multithreaded Loops in Numba: Numba 中的多线程循环 + Exercises: 练习 --- (speed)= diff --git a/lectures/numpy.md b/lectures/numpy.md index 51b3c35..4035594 100644 --- a/lectures/numpy.md +++ b/lectures/numpy.md @@ -7,26 +7,28 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - NumPy Arrays: NumPy 数组 - NumPy Arrays::Basics: 基础 - NumPy Arrays::Shape and Dimension: 形状与维度 - NumPy Arrays::Creating Arrays: 创建数组 - NumPy Arrays::Array Indexing: 数组索引 - NumPy Arrays::Array Methods: 数组方法 - Arithmetic Operations: 算术运算 - Matrix Multiplication: 矩阵乘法 - Broadcasting: 广播 - Mutability and Copying Arrays: 可变性与数组复制 - Mutability and Copying Arrays::Mutability: 可变性 - Mutability and Copying Arrays::Making Copies: 复制数组 - Additional Features: 其他功能 - Additional Features::Universal Functions: 通用函数 - Additional Features::Comparisons: 比较 - Additional Features::Sub-packages: 子包 - Additional Features::Implicit Multithreading: 隐式多线程 - Exercises: 练习 +translation: + title: NumPy + headings: + Overview: 概述 + NumPy Arrays: NumPy 数组 + NumPy Arrays::Basics: 基础 + NumPy Arrays::Shape and Dimension: 形状与维度 + NumPy Arrays::Creating Arrays: 创建数组 + NumPy Arrays::Array Indexing: 数组索引 + NumPy Arrays::Array Methods: 数组方法 + Arithmetic Operations: 算术运算 + Matrix Multiplication: 矩阵乘法 + Broadcasting: 广播 + Mutability and Copying Arrays: 可变性与数组复制 + Mutability and Copying Arrays::Mutability: 可变性 + Mutability and Copying Arrays::Making Copies: 复制数组 + Additional Features: 其他功能 + Additional Features::Universal Functions: 通用函数 + Additional Features::Comparisons: 比较 + Additional Features::Sub-packages: 子包 + Additional Features::Implicit Multithreading: 隐式多线程 + Exercises: 练习 --- (np)= diff --git a/lectures/numpy_vs_numba_vs_jax.md b/lectures/numpy_vs_numba_vs_jax.md index c60b158..04c4a94 100644 --- a/lectures/numpy_vs_numba_vs_jax.md +++ b/lectures/numpy_vs_numba_vs_jax.md @@ -7,21 +7,23 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Vectorized operations: 向量化运算 - Vectorized operations::Problem Statement: 问题陈述 - Vectorized operations::NumPy vectorization: NumPy 向量化 - Vectorized operations::A Comparison with Numba: 与 Numba 的比较 - Vectorized operations::Parallelized Numba: 并行化的 Numba - Vectorized operations::Vectorized code with JAX: 使用 JAX 的向量化代码 - Vectorized operations::JAX plus vmap: JAX 加 vmap - Vectorized operations::JAX plus vmap::Version 1: 版本 1 - Vectorized operations::vmap version 2: vmap 版本 2 - Vectorized operations::Summary: 总结 - Sequential operations: 顺序运算 - Sequential operations::Numba Version: Numba 版本 - Sequential operations::JAX Version: JAX 版本 - Sequential operations::Summary: 总结 +translation: + title: NumPy vs Numba vs JAX + headings: + Vectorized operations: 向量化运算 + Vectorized operations::Problem Statement: 问题陈述 + Vectorized operations::NumPy vectorization: NumPy 向量化 + Vectorized operations::A Comparison with Numba: 与 Numba 的比较 + Vectorized operations::Parallelized Numba: 并行化的 Numba + Vectorized operations::Vectorized code with JAX: 使用 JAX 的向量化代码 + Vectorized operations::JAX plus vmap: JAX 加 vmap + Vectorized operations::JAX plus vmap::Version 1: 版本 1 + Vectorized operations::vmap version 2: vmap 版本 2 + Vectorized operations::Summary: 总结 + Sequential operations: 顺序运算 + Sequential operations::Numba Version: Numba 版本 + Sequential operations::JAX Version: JAX 版本 + Sequential operations::Summary: 总结 --- (parallel)= diff --git a/lectures/oop_intro.md b/lectures/oop_intro.md index faf6949..0703828 100644 --- a/lectures/oop_intro.md +++ b/lectures/oop_intro.md @@ -7,17 +7,19 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Objects: 对象 - Objects::Type: 类型 - Objects::Identity: 标识符 - 'Objects::Object Content: Data and Attributes': 对象内容:数据与属性 - Objects::Methods: 方法 - Inspection Using Rich: 使用 Rich 进行检查 - A Little Mystery: 一个小谜题 - Summary: 总结 - Exercises: 练习 +translation: + title: OOP I:对象与方法 + headings: + Overview: 概述 + Objects: 对象 + Objects::Type: 类型 + Objects::Identity: 标识符 + 'Objects::Object Content: Data and Attributes': 对象内容:数据与属性 + Objects::Methods: 方法 + Inspection Using Rich: 使用 Rich 进行检查 + A Little Mystery: 一个小谜题 + Summary: 总结 + Exercises: 练习 --- (oop_intro)= diff --git a/lectures/pandas.md b/lectures/pandas.md index e6c99d5..6bbc065 100644 --- a/lectures/pandas.md +++ b/lectures/pandas.md @@ -9,19 +9,21 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -heading-map: - Overview: 概述 - Series: Series - DataFrames: DataFrames - DataFrames::Select Data by Position: 按位置选择数据 - DataFrames::Select Data by Conditions: 按条件选择数据 - DataFrames::Apply Method: Apply 方法 - DataFrames::Make Changes in DataFrames: 修改 DataFrames - DataFrames::Standardization and Visualization: 标准化与可视化 - On-Line Data Sources: 在线数据来源 - 'On-Line Data Sources::Accessing Data with {index}`requests `': '使用 {index}`requests ` 访问数据' - 'On-Line Data Sources::Using {index}`wbgapi ` and {index}`yfinance ` to Access Data': '使用 {index}`wbgapi ` 和 {index}`yfinance ` 访问数据' - Exercises: 练习 +translation: + title: Pandas + headings: + Overview: 概述 + Series: Series + DataFrames: DataFrames + DataFrames::Select Data by Position: 按位置选择数据 + DataFrames::Select Data by Conditions: 按条件选择数据 + DataFrames::Apply Method: Apply 方法 + DataFrames::Make Changes in DataFrames: 修改 DataFrames + DataFrames::Standardization and Visualization: 标准化与可视化 + On-Line Data Sources: 在线数据来源 + On-Line Data Sources::Accessing Data with requests: 使用 requests 访问数据 + On-Line Data Sources::Using wbgapi and yfinance to Access Data: 使用 wbgapi 和 yfinance 访问数据 + Exercises: 练习 --- (pd)= diff --git a/lectures/pandas_panel.md b/lectures/pandas_panel.md index 04d80d2..6d0c7fa 100644 --- a/lectures/pandas_panel.md +++ b/lectures/pandas_panel.md @@ -9,13 +9,15 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -heading-map: - Overview: 概述 - Slicing and Reshaping Data: 数据切片与重塑 - Merging Dataframes and Filling NaNs: 合并数据框与填充 NaN 值 - Grouping and Summarizing Data: 数据分组与汇总 - Final Remarks: 结语 - Exercises: 练习 +translation: + title: Pandas 面板数据 + headings: + Overview: 概述 + Slicing and Reshaping Data: 数据切片与重塑 + Merging Dataframes and Filling NaNs: 合并数据框与填充 NaN 值 + Grouping and Summarizing Data: 数据分组与汇总 + Final Remarks: 结语 + Exercises: 练习 --- ```{raw} jupyter diff --git a/lectures/python_advanced_features.md b/lectures/python_advanced_features.md index e451713..41574ad 100644 --- a/lectures/python_advanced_features.md +++ b/lectures/python_advanced_features.md @@ -7,38 +7,39 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - More Language Features: 更多语言特性 - Overview: 概述 - Iterables and iterators: 可迭代对象与迭代器 - Iterables and iterators::Iterators: 迭代器 - Iterables and iterators::Iterators in for loops: for 循环中的迭代器 - Iterables and iterators::Iterables: 可迭代对象 - Iterables and iterators::Iterators and built-ins: 迭代器与内置函数 - '`*` and `**` operators': '`*` 和 `**` 运算符' - '`*` and `**` operators::Unpacking arguments': 解包参数 - '`*` and `**` operators::Arbitrary arguments': 任意数量的参数 - Type hints: 类型提示 - Type hints::Basic syntax: 基本语法 - Type hints::Common types: 常用类型 - Type hints::Hints don't enforce types: 提示不强制类型 - Type hints::Why use type hints?: 为什么使用类型提示? - Type hints::Type hints in scientific Python: 科学 Python 中的类型提示 - Decorators and descriptors: 装饰器与描述符 - Decorators and descriptors::Decorators: 装饰器 - Decorators and descriptors::Decorators::An example: 一个示例 - Decorators and descriptors::Decorators::Enter decorators: 引入装饰器 - Decorators and descriptors::Descriptors: 描述符 - Decorators and descriptors::Descriptors::A solution: 解决方案 - Decorators and descriptors::Descriptors::How it works: 工作原理 - Decorators and descriptors::Descriptors::Decorators and properties: 装饰器与属性 - Generators: 生成器 - Generators::Generator expressions: 生成器表达式 - Generators::Generator functions: 生成器函数 - Generators::Generator functions::Example 1: 示例 1 - Generators::Generator functions::Example 2: 示例 2 - Generators::Advantages of iterators: 迭代器的优势 - Exercises: 练习 +translation: + title: 更多语言特性 + headings: + Overview: 概述 + Iterables and iterators: 可迭代对象与迭代器 + Iterables and iterators::Iterators: 迭代器 + Iterables and iterators::Iterators in for loops: for 循环中的迭代器 + Iterables and iterators::Iterables: 可迭代对象 + Iterables and iterators::Iterators and built-ins: 迭代器与内置函数 + '`*` and `**` operators': '`*` 和 `**` 运算符' + '`*` and `**` operators::Unpacking arguments': 解包参数 + '`*` and `**` operators::Arbitrary arguments': 任意数量的参数 + Type hints: 类型提示 + Type hints::Basic syntax: 基本语法 + Type hints::Common types: 常用类型 + Type hints::Hints don't enforce types: 提示不强制类型 + Type hints::Why use type hints?: 为什么使用类型提示? + Type hints::Type hints in scientific Python: 科学 Python 中的类型提示 + Decorators and descriptors: 装饰器与描述符 + Decorators and descriptors::Decorators: 装饰器 + Decorators and descriptors::Decorators::An example: 一个示例 + Decorators and descriptors::Decorators::Enter decorators: 引入装饰器 + Decorators and descriptors::Descriptors: 描述符 + Decorators and descriptors::Descriptors::A solution: 解决方案 + Decorators and descriptors::Descriptors::How it works: 工作原理 + Decorators and descriptors::Descriptors::Decorators and properties: 装饰器与属性 + Generators: 生成器 + Generators::Generator expressions: 生成器表达式 + Generators::Generator functions: 生成器函数 + Generators::Generator functions::Example 1: 示例 1 + Generators::Generator functions::Example 2: 示例 2 + Generators::Advantages of iterators: 迭代器的优势 + Exercises: 练习 --- (python_advanced_features)= diff --git a/lectures/python_by_example.md b/lectures/python_by_example.md index 26aa03e..ad4536b 100644 --- a/lectures/python_by_example.md +++ b/lectures/python_by_example.md @@ -7,24 +7,26 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - 'The Task: Plotting a White Noise Process': 任务:绘制白噪声过程 - Version 1: 版本一 - Version 1::Imports: 导入语句 - Version 1::Imports::Why So Many Imports?: 为什么需要这么多导入语句? - Version 1::Imports::Packages: 包 - Version 1::Imports::Subpackages: 子包 - Version 1::Importing Names Directly: 直接导入名称 - Version 1::Random Draws: 随机抽取 - Alternative Implementations: 替代实现 - Alternative Implementations::A Version with a For Loop: 使用 For 循环的版本 - Alternative Implementations::Lists: 列表 - Alternative Implementations::The For Loop: For 循环 - Alternative Implementations::A Comment on Indentation: 关于缩进的说明 - Alternative Implementations::While Loops: While 循环 - Another Application: 另一个应用 - Exercises: 练习 +translation: + title: 入门示例 + headings: + Overview: 概述 + 'The Task: Plotting a White Noise Process': 任务:绘制白噪声过程 + Version 1: 版本一 + Version 1::Imports: 导入语句 + Version 1::Imports::Why So Many Imports?: 为什么需要这么多导入语句? + Version 1::Imports::Packages: 包 + Version 1::Imports::Subpackages: 子包 + Version 1::Importing Names Directly: 直接导入名称 + Version 1::Random Draws: 随机抽取 + Alternative Implementations: 替代实现 + Alternative Implementations::A Version with a For Loop: 使用 For 循环的版本 + Alternative Implementations::Lists: 列表 + Alternative Implementations::The For Loop: For 循环 + Alternative Implementations::A Comment on Indentation: 关于缩进的说明 + Alternative Implementations::While Loops: While 循环 + Another Application: 另一个应用 + Exercises: 练习 --- (python_by_example)= diff --git a/lectures/python_essentials.md b/lectures/python_essentials.md index 638ec4f..c0e54da 100644 --- a/lectures/python_essentials.md +++ b/lectures/python_essentials.md @@ -7,28 +7,30 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - Data Types: 数据类型 - Data Types::Primitive Data Types: 基本数据类型 - Data Types::Primitive Data Types::Boolean Values: 布尔值 - Data Types::Primitive Data Types::Numeric Types: 数值类型 - Data Types::Containers: 容器 - Data Types::Containers::Slice Notation: 切片表示法 - Data Types::Containers::Sets and Dictionaries: 集合与字典 - Input and Output: 输入与输出 - Input and Output::Paths: 路径 - Iterating: 迭代 - Iterating::Looping over Different Objects: 遍历不同对象 - Iterating::Looping without Indices: 不使用索引的循环 - Iterating::List Comprehensions: 列表推导式 - Comparisons and Logical Operators: 比较与逻辑运算符 - Comparisons and Logical Operators::Comparisons: 比较 - Comparisons and Logical Operators::Combining Expressions: 组合表达式 - Coding Style and Documentation: 编码风格与文档 - 'Coding Style and Documentation::Python Style Guidelines: PEP8': Python 风格指南:PEP8 - Coding Style and Documentation::Docstrings: 文档字符串 - Exercises: 练习 +translation: + title: Python 基础要点 + headings: + Overview: 概述 + Data Types: 数据类型 + Data Types::Primitive Data Types: 基本数据类型 + Data Types::Primitive Data Types::Boolean Values: 布尔值 + Data Types::Primitive Data Types::Numeric Types: 数值类型 + Data Types::Containers: 容器 + Data Types::Containers::Slice Notation: 切片表示法 + Data Types::Containers::Sets and Dictionaries: 集合与字典 + Input and Output: 输入与输出 + Input and Output::Paths: 路径 + Iterating: 迭代 + Iterating::Looping over Different Objects: 遍历不同对象 + Iterating::Looping without Indices: 不使用索引的循环 + Iterating::List Comprehensions: 列表推导式 + Comparisons and Logical Operators: 比较与逻辑运算符 + Comparisons and Logical Operators::Comparisons: 比较 + Comparisons and Logical Operators::Combining Expressions: 组合表达式 + Coding Style and Documentation: 编码风格与文档 + 'Coding Style and Documentation::Python Style Guidelines: PEP8': Python 风格指南:PEP8 + Coding Style and Documentation::Docstrings: 文档字符串 + Exercises: 练习 --- (python_done_right)= diff --git a/lectures/python_oop.md b/lectures/python_oop.md index 4565743..3af47a9 100644 --- a/lectures/python_oop.md +++ b/lectures/python_oop.md @@ -7,21 +7,23 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - OOP Review: 面向对象编程回顾 - OOP Review::Key Concepts: 核心概念 - OOP Review::Why is OOP Useful?: 面向对象编程为何有用? - Defining Your Own Classes: 定义您自己的类 - 'Defining Your Own Classes::Example: A Consumer Class': 示例:消费者类 - 'Defining Your Own Classes::Example: A Consumer Class::Usage': 用法 - 'Defining Your Own Classes::Example: A Consumer Class::Self': Self - 'Defining Your Own Classes::Example: A Consumer Class::Details': 详情 - 'Defining Your Own Classes::Example: The Solow Growth Model': 示例:索洛增长模型 - 'Defining Your Own Classes::Example: A Market': 示例:市场 - 'Defining Your Own Classes::Example: Chaos': 示例:混沌 - Special Methods: 特殊方法 - Exercises: 练习 +translation: + title: OOP II:构建类 + headings: + Overview: 概述 + OOP Review: 面向对象编程回顾 + OOP Review::Key Concepts: 核心概念 + OOP Review::Why is OOP Useful?: 面向对象编程为何有用? + Defining Your Own Classes: 定义您自己的类 + 'Defining Your Own Classes::Example: A Consumer Class': 示例:消费者类 + 'Defining Your Own Classes::Example: A Consumer Class::Usage': 用法 + 'Defining Your Own Classes::Example: A Consumer Class::Self': Self + 'Defining Your Own Classes::Example: A Consumer Class::Details': 详情 + 'Defining Your Own Classes::Example: The Solow Growth Model': 示例:索洛增长模型 + 'Defining Your Own Classes::Example: A Market': 示例:市场 + 'Defining Your Own Classes::Example: Chaos': 示例:混沌 + Special Methods: 特殊方法 + Exercises: 练习 --- (python_oop)= diff --git a/lectures/scipy.md b/lectures/scipy.md index b60d94d..fb1f864 100644 --- a/lectures/scipy.md +++ b/lectures/scipy.md @@ -7,24 +7,26 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - '{index}`SciPy ` versus {index}`NumPy `': '{index}`SciPy ` 与 {index}`NumPy ` 的比较' - Statistics: 统计 - Statistics::Random Variables and Distributions: 随机变量与分布 - Statistics::Alternative Syntax: 替代语法 - Statistics::Other Goodies in scipy.stats: scipy.stats 中的其他功能 - Roots and Fixed Points: 根与不动点 - 'Roots and Fixed Points::{index}`Bisection `': '{index}`二分法 `' - 'Roots and Fixed Points::The {index}`Newton-Raphson Method `': '{index}`牛顿-拉弗森法 `' - Roots and Fixed Points::Hybrid Methods: 混合方法 - Roots and Fixed Points::Multivariate Root-Finding: 多元求根 - Roots and Fixed Points::Fixed Points: 不动点 - '{index}`Optimization `': '{index}`优化 `' - '{index}`Optimization `::Multivariate Optimization': 多元优化 - '{index}`Integration `': '{index}`积分 `' - '{index}`Linear Algebra `': '{index}`线性代数 `' - Exercises: 练习 +translation: + title: SciPy + headings: + Overview: 概述 + SciPy versus NumPy: SciPy 与 NumPy 的比较 + Statistics: 统计 + Statistics::Random Variables and Distributions: 随机变量与分布 + Statistics::Alternative Syntax: 替代语法 + Statistics::Other Goodies in scipy.stats: scipy.stats 中的其他功能 + Roots and Fixed Points: 根与不动点 + Roots and Fixed Points::Bisection: 二分法 + Roots and Fixed Points::The Newton-Raphson Method: 牛顿-拉弗森法 + Roots and Fixed Points::Hybrid Methods: 混合方法 + Roots and Fixed Points::Multivariate Root-Finding: 多元求根 + Roots and Fixed Points::Fixed Points: 不动点 + Optimization: 优化 + Optimization::Multivariate Optimization: 多元优化 + Integration: 积分 + Linear Algebra: 线性代数 + Exercises: 练习 --- (sp)= diff --git a/lectures/status.md b/lectures/status.md index 40d506b..6b0d380 100644 --- a/lectures/status.md +++ b/lectures/status.md @@ -7,6 +7,8 @@ kernelspec: display_name: Python 3 language: python name: python3 +translation: + title: 执行统计 --- # 执行统计 diff --git a/lectures/sympy.md b/lectures/sympy.md index 48174db..05bc309 100644 --- a/lectures/sympy.md +++ b/lectures/sympy.md @@ -9,25 +9,27 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -heading-map: - Overview: 概述 - Getting Started: 入门 - Symbolic algebra: 符号代数 - Symbolic algebra::Symbols: 符号 - Symbolic algebra::Expressions: 表达式 - Symbolic algebra::Equations: 方程 - 'Symbolic algebra::Equations::Example: fixed point computation': 示例:不动点计算 - Symbolic algebra::Inequalities and logic: 不等式与逻辑 - Symbolic algebra::Series: 级数 - 'Symbolic algebra::Series::Example: bank deposits': 示例:银行存款 - 'Symbolic algebra::Series::Example: discrete random variable': 示例:离散随机变量 - Symbolic Calculus: 符号微积分 - Symbolic Calculus::Limits: 极限 - Symbolic Calculus::Derivatives: 导数 - Symbolic Calculus::Integrals: 积分 - Plotting: 绘图 - 'Application: Two-person Exchange Economy': 应用:两人交换经济 - Exercises: 练习 +translation: + title: SymPy + headings: + Overview: 概述 + Getting Started: 入门 + Symbolic algebra: 符号代数 + Symbolic algebra::Symbols: 符号 + Symbolic algebra::Expressions: 表达式 + Symbolic algebra::Equations: 方程 + 'Symbolic algebra::Equations::Example: fixed point computation': 示例:不动点计算 + Symbolic algebra::Inequalities and logic: 不等式与逻辑 + Symbolic algebra::Series: 级数 + 'Symbolic algebra::Series::Example: bank deposits': 示例:银行存款 + 'Symbolic algebra::Series::Example: discrete random variable': 示例:离散随机变量 + Symbolic Calculus: 符号微积分 + Symbolic Calculus::Limits: 极限 + Symbolic Calculus::Derivatives: 导数 + Symbolic Calculus::Integrals: 积分 + Plotting: 绘图 + 'Application: Two-person Exchange Economy': 应用:两人交换经济 + Exercises: 练习 --- (sympy)= diff --git a/lectures/troubleshooting.md b/lectures/troubleshooting.md index 5c7500f..c25390a 100644 --- a/lectures/troubleshooting.md +++ b/lectures/troubleshooting.md @@ -7,9 +7,11 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Fixing Your Local Environment: 修复本地环境 - Reporting an Issue: 提交问题报告 +translation: + title: 故障排除 + headings: + Fixing Your Local Environment: 修复本地环境 + Reporting an Issue: 提交问题报告 --- (troubleshooting)= diff --git a/lectures/workspace.md b/lectures/workspace.md index 0c4b03a..aea760a 100644 --- a/lectures/workspace.md +++ b/lectures/workspace.md @@ -9,17 +9,19 @@ kernelspec: name: python3 display_name: Python 3 (ipykernel) language: python -heading-map: - Overview: 概述 - Working with Python files: 使用 Python 文件 - Development environments: 开发环境 - 'A step forward from Jupyter Notebooks: JupyterLab': Jupyter Notebook 的进阶:JupyterLab - 'A step forward from Jupyter Notebooks: JupyterLab::Using magic commands': 使用魔法命令 - 'A step forward from Jupyter Notebooks: JupyterLab::Using the terminal': 使用终端 - A walk through Visual Studio Code: Visual Studio Code 使用指南 - A walk through Visual Studio Code::Using the run button: 使用运行按钮 - A walk through Visual Studio Code::Using the terminal: 使用终端 - Git your hands dirty: 动手实践 Git +translation: + title: 编写较长的程序 + headings: + Overview: 概述 + Working with Python files: 使用 Python 文件 + Development environments: 开发环境 + 'A step forward from Jupyter Notebooks: JupyterLab': Jupyter Notebook 的进阶:JupyterLab + 'A step forward from Jupyter Notebooks: JupyterLab::Using magic commands': 使用魔法命令 + 'A step forward from Jupyter Notebooks: JupyterLab::Using the terminal': 使用终端 + A walk through Visual Studio Code: Visual Studio Code 使用指南 + A walk through Visual Studio Code::Using the run button: 使用运行按钮 + A walk through Visual Studio Code::Using the terminal: 使用终端 + Git your hands dirty: 动手实践 Git --- (workspace)= diff --git a/lectures/writing_good_code.md b/lectures/writing_good_code.md index c08e8a7..740f5f4 100644 --- a/lectures/writing_good_code.md +++ b/lectures/writing_good_code.md @@ -7,18 +7,20 @@ kernelspec: display_name: Python 3 language: python name: python3 -heading-map: - Overview: 概述 - An Example of Poor Code: 劣质代码示例 - Good Coding Practice: 良好的编码实践 - Good Coding Practice::Don't Use Magic Numbers: 不要使用魔法数字 - Good Coding Practice::Don't Repeat Yourself: 不要重复自己 - Good Coding Practice::Minimize Global Variables: 最小化全局变量 - Good Coding Practice::Minimize Global Variables::JIT Compilation: JIT 编译 - Good Coding Practice::Use Functions or Classes: 使用函数或类 - Good Coding Practice::Use Functions or Classes::Which One, Functions or Classes?: 选哪个,函数还是类? - Revisiting the Example: 重新审视示例 - Exercises: 练习 +translation: + title: 编写高质量代码 + headings: + Overview: 概述 + An Example of Poor Code: 劣质代码示例 + Good Coding Practice: 良好的编码实践 + Good Coding Practice::Don't Use Magic Numbers: 不要使用魔法数字 + Good Coding Practice::Don't Repeat Yourself: 不要重复自己 + Good Coding Practice::Minimize Global Variables: 最小化全局变量 + Good Coding Practice::Minimize Global Variables::JIT Compilation: JIT 编译 + Good Coding Practice::Use Functions or Classes: 使用函数或类 + Good Coding Practice::Use Functions or Classes::Which One, Functions or Classes?: 选哪个,函数还是类? + Revisiting the Example: 重新审视示例 + Exercises: 练习 --- (writing_good_code)=