fix(tutorial): 修复第6.2节天气查询教程Jupyter版图片链接中的%20编码#143
Open
Kailigithub wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
tutorial/FastAPI/第6章-FastAPI MCP/第6.2节-实现天气查询 MCP.ipynb文件中的图片链接使用了%20URL 编码指向目录和文件名,但实际目录tutorial/FastAPI/第6章-FastAPI MCP/images/下的文件名是含中文和空格的纯文本,导致 Jupyter Notebook 渲染时全部 14 张配图无法显示。具体问题:
../第6章-FastAPI%20MCP/images/中的%20应为字面空格(11 处)06-安装配置Cherry%20Studio.png/07-FastAPI%20docs测试.png/08-MCP%20Tool.png中的%20应为字面空格(3 处)合计 14 处替换,将所有
%20还原为字面空格字符。与 #130 的关系
PR #130 已修复
tutorial/FastAPI/md版本/第22课-实现天气查询 MCP.md文件中的相同问题。本 PR 处理同章节 Jupyter Notebook 版本的同一问题,两个文件是教程的不同载体(Markdown 与 Jupyter),分别独立渲染。合并后教程两个版本均能正确显示配图。验证
/tmp/test_tutorial_ipynb_fix.py覆盖五项检查:%20总数从 14 降至 0tutorial/FastAPI/第6章-FastAPI MCP/images/目录中正确解析并通过 git-stash 三步验证:未修复时
Image links: 0 resolve, 14 missing,修复后Image links: 14 resolve, 0 missing。影响范围
仅修改 1 个 Jupyter Notebook 文件,14 行替换;不影响任何代码、配置或运行时行为;不破坏现有 Jupyter 渲染(其他教程目录中的图片均使用字面空格)。
测试建议
tutorial/FastAPI/第6章-FastAPI MCP/images/目录中实际文件名,确认链接一一对应