尝试运行matplotlib时,Jupyter Notebook内核死亡

时间:2020-04-01 22:28:33

标签: python matplotlib jupyter-notebook

我一般对Python和编程都不熟悉。我试图在Jupyter笔记本中使用matplotlib绘制一个简单的图,并且不断弹出错误消息,指出内核已死亡。我试过重新安装Anaconda和Jupyter。我也尝试过“ conda install nomkl”,问题仍然存在。这是一些屏幕截图 Screenshot of the code Screenshot of the Error

这是我的终端窗口的副本:

[I 15:01:58.001 NotebookApp] JupyterLab extension loaded from 
/Applications/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 15:01:58.002 NotebookApp] JupyterLab application directory is 
/Applications/anaconda3/share/jupyter/lab
[I 15:01:58.012 NotebookApp] Serving notebooks from local directory: /Users/ScottJohnson
[I 15:01:58.013 NotebookApp] The Jupyter Notebook is running at:
[I 15:01:58.013 NotebookApp] http://localhost:8888/? 
token=68e1eadc99bad8ce436618fa11bf3b585bd49aaeab6a6e99
[I 15:01:58.013 NotebookApp]  or http://127.0.0.1:8888/? 
token=68e1eadc99bad8ce436618fa11bf3b585bd49aaeab6a6e99
[I 15:01:58.014 NotebookApp] Use Control-C to stop this server and shut down all kernels 
(twice to skip confirmation).
[C 15:01:58.032 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///Users/ScottJohnson/Library/Jupyter/runtime/nbserver-3489-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=68e1eadc99bad8ce436618fa11bf3b585bd49aaeab6a6e99
    or http://127.0.0.1:8888/?token=68e1eadc99bad8ce436618fa11bf3b585bd49aaeab6a6e99
[W 15:02:22.969 NotebookApp] Notebook Desktop/Python Class/CourseMaterial/06 - 
Functions/0615 - Birth statistics graphic.ipynb is not trusted
[I 15:02:23.728 NotebookApp] Kernel started: 0d91235f-3ea8-46a2-ade3-ca33b2bd1049
[I 15:02:47.683 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 0d91235f-3ea8-46a2-ade3-ca33b2bd1049 restarted
[I 15:02:59.703 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 0d91235f-3ea8-46a2-ade3-ca33b2bd1049 restarted
[I 15:04:33.401 NotebookApp] Saving file at /Desktop/Python Class/CourseMaterial/06 - 
Functions/0615 - Birth statistics graphic.ipynb
[I 15:06:23.399 NotebookApp] Saving file at /Desktop/Python Class/CourseMaterial/06 - 
Functions/0615 - Birth statistics graphic.ipynb
[I 15:08:24.103 NotebookApp] Saving file at /Desktop/Python Class/CourseMaterial/06 - 
Functions/0615 - Birth statistics graphic.ipynb
[I 15:09:08.714 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 0d91235f-3ea8-46a2-ade3-ca33b2bd1049 restarted
[I 15:10:23.359 NotebookApp] Saving file at /Desktop/Python Class/CourseMaterial/06 - 
Functions/0615 - Birth statistics graphic.ipynb

0 个答案:

没有答案