Jupyterが動かないときのトラブルシューティング

juptyer notebookを立ち上げても正常に起動しない。
↓なエラーが出る


(pytlesson) C:\anaconda3\envs\pytlesson>jupyter notebook
[I 06:01:49.507 NotebookApp] Serving notebooks from local directory: C:\anaconda3\envs\pytlesson
[I 06:01:49.507 NotebookApp] The Jupyter Notebook is running at:
[I 06:01:49.507 NotebookApp] http://localhost:8888/?token=4efb98535e84bd982fbbdc349c91f78ba9bea7f4cd53f7
[I 06:01:49.507 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 06:01:49.538 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=4efb98535e84bd982fbbdc50349c91f78ba9bea7f53f7
[I 06:01:50.057 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 06:02:04.136 NotebookApp] Creating new notebook in
Traceback (most recent call last):
File "C:\anaconda3\envs\pytlesson\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\anaconda3\envs\pytlesson\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\anaconda3\envs\pytlesson\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\anaconda3\envs\pytlesson\lib\site-packages\ipykernel\__init__.py", line 2, in
from .connect import *
File "C:\anaconda3\envs\pytlesson\lib\site-packages\ipykernel\connect.py", line 13, in
[I 06:02:22.438 NotebookApp] Kernel started: 8f73d355-143c-4bb6-b0e5-79befa2810fe
from IPython.core.profiledir import ProfileDir
File "C:\anaconda3\envs\pytlesson\lib\site-packages\IPython\__init__.py", line 55, in
from .terminal.embed import embed
File "C:\anaconda3\envs\pytlesson\lib\site-packages\IPython\terminal\embed.py", line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\anaconda3\envs\pytlesson\lib\site-packages\IPython\terminal\interactiveshell.py", line 22, in
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'

https://github.com/jupyter/jupyter_console/issues/158


↑というわけで


pip install prompt-toolkit==1.0.15 -U

前の記事からするとギャグだなこれ・・・