资料内容:
三、Jupyter深度集成(附⾼效调试)
1. 创建智能Notebook
1. 新建 .ipynb ⽂件
2. 右上⻆选择内核(选择创建的.venv)
3. 核⼼魔法命令:
%load_ext autoreload
%autoreload 2 # 实时重载模块
2. 调试技巧三连击
# 配置launch.json
{
"name": "Debug Jupyter Cell",
"type": "jupyter",
"request": "launch",
"program": "${file}"
}
场景1:Notebook单元格调试