TRGjupyter 关闭 kernel 报错 中发帖

jupyter 关闭 kernel 报错,有没有佬知道为啥,以下只是猜测 
IPython 清理显存
连续做作业时需要用到
app = IPython.Application.instance()
app.kernel.do_shutdown(True)

输出:
{'status': 'ok', 'restart': True} // 清理 GPU 显存
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. //可能存在误报

大概率的原因:
VS Code Jupyter 扩展在 kernel 关闭...