Jupyter matplotlib 画图就kernel died 问题解决
2021-12-07 15:50 youxin 阅读(5217) 评论(1) 编辑 收藏 举报![](https://img2020.cnblogs.com/blog/277239/202112/277239-20211207154815771-97935366.png)
Info 2021-12-07 15:11:03: Execute Cells request 2 1, 2
Info 2021-12-07 15:11:03: Execute Cell 1 file:///f%3A/pythonCode/juptyerCode//plot2.ipynb
Info 2021-12-07 15:11:03: Execute Cell 2 file:///f%3A/pythonCode/juptyerCode//plot2.ipynb
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 137
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "WARNING", "msg": "Kernel has exited with exit code 3221225477, ", "pid": 22404}}Content-Length: 94
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "kernel_died", "params": {"exit_code": 3221225477, "reason": ""}}
Warn 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kernel has exited with exit code 3221225477,
Error 2021-12-07 15:11:03: Kernel died [s [Error]: Kernel died (code: 3221225477). FutureWarning),
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:793230
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466054
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466272
at Immediate._onImmediate (c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:467837)
at processImmediate (internal/timers.js:461:21)] {
category: 'kerneldied',
stdErr: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n',
exitCode: 3221225477,
reason: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n'
} D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
Error 2021-12-07 15:11:03: KernelProcess Exit Exit - 3221225477, D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
[s [Error]: Kernel died (code: 3221225477). FutureWarning),
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:793230
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466054
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466272
at Immediate._onImmediate (c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:467837)
at processImmediate (internal/timers.js:461:21)] {
category: 'kerneldied',
stdErr: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n',
exitCode: 3221225477,
reason: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n'
}
Error 2021-12-07 15:11:03: Disposing session as kernel process died ExitCode: 3221225477, Reason: undefined
Info 2021-12-07 15:11:03: Dispose Kernel process
Info 2021-12-07 15:11:03: kill daemon
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 132
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 22404}}
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Execute rpc method kill_kernel in DS Daemon
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 180
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\python.exe", "pid": 22404}}Content-Length: 129
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 22404}}Content-Length: 140
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 39208", "pid": 22404}}Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Execute rpc method kill_kernel from D:\progameFiles\Anaconda3\envs\tf2.1gpu\python.exe
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kill kernel in DS Kernel Launcher Daemon
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kill kernel in DS Kernel Launcher Daemon, pid 39208
Info 2021-12-07 15:11:03: Dispose Kernel process
Info 2021-12-07 15:11:03: KernelProcess Exit Exit - 3221225477 D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)