简体   繁体   English

Jupyter Notebook 单元无法运行

[英]Jupyter Notebook cells won't run

I have opened a notebook using Anaconda, I entered the token and it opens fine.我使用 Anaconda 打开了一个笔记本,我输入了令牌,它打开得很好。 The kernel it is running is Python3.它运行的内核是 Python3。 However, it is not running any cells.但是,它没有运行任何单元。

I have tried checking the kernels installed, I have tried running jupyter troubleshoot in my command.我试过检查安装的内核,我试过在我的命令中运行 jupyter 故障排除。 My command keeps showing blocks like this:我的命令一直显示这样的块:

    [I 17:36:41.918 NotebookApp] Adapting from protocol version 5.1 (kernel 543df2b4-283f-43bc-afee-c4580df2761b) to 5.3 (client).
[E 17:36:41.920 NotebookApp] Uncaught exception GET /api/kernels/543df2b4-283f-43bc-afee-c4580df2761b/channels?session_id=aaa5c54bff4f44e2ac919aafb4973662 (::1)
    HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/543df2b4-283f-43bc-afee-c4580df2761b/channels?session_id=aaa5c54bff4f44e2ac919aafb4973662', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/tornado/websocket.py", line 546, in _run_callback
        result = callback(*args, **kwargs)
      File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 274, in open
        self.create_stream()
      File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 127, in create_stream
        meth = getattr(km, 'connect_' + channel)
    AttributeError: 'MappingKernelManager' object has no attribute 'connect_control'

The components for your Jupyter installation are out-of-date with respect to one another.您的 Jupyter 安装组件相互之间已经过时。

I suggest either reinstalling Anaconda from scratch or upgrading the individual packages used by the notebook.我建议要么从头开始重新安装 Anaconda,要么升级笔记本使用的各个软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM