我已经使用Anaconda打开了一个笔记本,我输入了令牌并且可以正常打开。它运行的内核是Python3。但是,它没有运行任何单元。
我尝试检查已安装的内核,并尝试在命令中运行jupyter故障排除。我的命令不断显示这样的块:
[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'
答案 0 :(得分:1)
您安装的Jupyter组件彼此之间已经过时。
我建议要么从头开始重新安装Anaconda,要么升级笔记本使用的单个软件包。