Interactive Jupyter Notebook does not work: Fail to Start the Kernel #12416
Unanswered
irislin1
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Can someone help me with this question please?
Somehow the jupyter notebook on my vscode does not work. I have tried reinstall both vscode and the jupyter extension. Here is the error I got:
Failed to start the Kernel.
Traceback (most recent call last):
File "/Users/ilin/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 158, in _start_notebook
from notebook import notebookapp as app
File "/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/notebook/notebookapp.py", line 43, in
from jinja2 import Environment, FileSystemLoader
File "/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/jinja2/init.py", line 12, in
from .environment import Environment
File "/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/jinja2/environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/jinja2/filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/markupsafe/init.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ilin/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/vscode_datascience_helpers/daemon/daemon_python.py", line 54, in _decorator
return func(self, *args, **kwargs)
File "/Users/ilin/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 111, in m_exec_module_observable
self._start_notebook(args, cwd, env)
File "/Users/ilin/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 160, in _start_notebook
from notebook import app as app
ImportError: cannot import name 'app' from 'notebook' (/Users/ilin/.pyenv/versions/3.8.12_x86/lib/python3.8/site-packages/notebook/init.py)
Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="/Users/ilin/Documents/Github/data-consumption-forecast/notebooks" --config=/var/folders/4x/136x0p95715cl35m8sssckl80000gp/T/600c5b38-746f-491b-9f5b-2f3c1bf18222/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0.
View Jupyter log for further details.
Beta Was this translation helpful? Give feedback.
All reactions