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