问题复现
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