問題復現
vscode 右上角出現的報錯,代碼無法正常運行。
:Jupyter Server: No Kernel Python: Not Started
解決
需要激活 python 環境,vscode 界面下按 F1 輸入Select Interpreter to start Jupyter server” 選擇你需要的環境。
或者如果你有 anaconda 的話在你的工作目錄下輸入conda activate base
用以激活環境。
原因
我的 python 環境是 anaconda3 ,這個問題是由於 anaconda3 的環境沒有激活所導致的。
參考
https://github.com/jupyterhub/jupyterhub