我需要有关 jupyter notebook 内核启动的帮助。它一直工作到一天前,在我被困在“内核启动,请稍候”之后。我不确定应该从哪里开始,关于这个主题的内容不多。
版本:
python: 3.8.7
Jupyter: 1.0.0
tornado: 6.1
jupyter-packaging 0.7.12
jupyter_client 6.1.12
jupyter_console 6.4.0
jupyter_core 4.7.1
jupyter_server 1.4.1
jupyterlab 3.0.14
jupyterlab_pygments 0.1.2
jupyterlab_server 2.4.0
jupyterlab_widgets 1.0.0
在我的 macbook 终端中,这是我看到的:
NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/site-packages/ipykernel/__init__.py", line 2, in <module>
from .connect import *
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/site-packages/ipykernel/connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/site-packages/IPython/__init__.py", line 55, in <module>
from .core.application import Application
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/site-packages/IPython/core/application.py", line 18, in <module>
import logging
File "/Users/axitagupta/opt/anaconda3/lib/python3.8/logging/__init__.py", line 28, in <module>
from string import Template
ImportError: cannot import name 'Template' from 'string' (/Users/axitagupta/Documents/ds-algo/Python/string.py)