資料內容:
三、Jupyter深度集成(附?效調試)
1. 創(chuàng)建智能Notebook
1. 新建 .ipynb ?件
2. 右上?選擇內核(選擇創(chuàng)建的.venv)
3. 核?魔法命令:
%load_ext autoreload
%autoreload 2 # 實時重載模塊
2. 調試技巧三連擊
# 配置launch.json
{
"name": "Debug Jupyter Cell",
"type": "jupyter",
"request": "launch",
"program": "${file}"
}
場景1:Notebook單元格調試