问题描述为:Cannot execute code, session has been disposed. Please try restarting the Kernel.
在stackoverflow上有讨论过:https://stackoverflow.com/questions/70506366/failed-to-start-the-kernel-jupyter-in-vs-code
他们提出了三个解决方法,没有一个解决了我的问题:
方法一:
pip install jupyter
方法二:
pip uninstall pyzmq
pip install pyzmq==19.0.2#可能会出现这个版本不适合的情况,则用pip install pyzmq
方法三:
通过VS扩展重新安装