pip install jupyter
→ Completed quickly, the web version of jupyter started with jupyter notebook
, if you think it's okay ...
In but not out. Even Markdown remains in plain text.
Eventually, the kernel got an error and became Not Conected
.
What does that mean?
Immediately after the first Kernel started:
, Traceback (most recent call last):
runs and ends with ModuleNotFoundError: No module named'prompt_toolkit.formatted_text'
.
[I 13:44:36.598 NotebookApp] Kernel started: 2b1f107e-6695-4f99-bf66-37f048436327
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "/anaconda3/lib/python3.6/site-packages/ipykernel/__init__.py", line 2, in <module>
from .connect import *
File "/anaconda3/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "/anaconda3/lib/python3.6/site-packages/IPython/__init__.py", line 56, in <module>
from .terminal.embed import embed
File "/anaconda3/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/anaconda3/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'
[I 13:44:39.584 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
After that, I restarted several times with Kernel Restarter: restarting kernel (1/5)
, but all of them ended with ModuleNotFoundError
.
It looks like a drawing tool. A note about the introduction and operation of the python prompt toolkit https://vaaaaaanquish.hatenablog.com/entry/2019/07/06/213909
$ pip list | grep prompt-toolkit
prompt-toolkit 1.0.18
is there.
prompt-toolkit 3.0.2 https://pypi.org/project/prompt-toolkit/
1.0 and 3.0 would be quite different.
https://python-prompt-toolkit.readthedocs.io/en/1.0.15/search.html?q=formatted_text&check_keywords=yes&area=default
https://python-prompt-toolkit.readthedocs.io/en/latest/index.html
https://python-prompt-toolkit.readthedocs.io/en/master/index.html
Immediately.
$ pip install --upgrade prompt-toolkit==2
ERROR: Could not find a version that satisfies the requirement prompt-toolkit==2 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.25, 0.26, 0.28, 0.30, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.40, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.50, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.60, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.17, 1.0.18, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 3.0.0, 3.0.1, 3.0.2)
ERROR: No matching distribution found for prompt-toolkit==2
It seems that you have to specify the decimal point firmly. Is it okay with the final version of the 2nd series?
$ pip install --upgrade prompt-toolkit==2.0.10
Collecting prompt-toolkit==2.0.10
Downloading https://files.pythonhosted.org/packages/87/61/2dfea88583d5454e3a64f9308a686071d58d59a55db638268a6413e1eb6d/prompt_toolkit-2.0.10-py3-none-any.whl (340kB)
|████████████████████████████████| 348kB 1.4MB/s
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /anaconda3/lib/python3.6/site-packages (from prompt-toolkit==2.0.10) (1.13.0)
Requirement already satisfied, skipping upgrade: wcwidth in /anaconda3/lib/python3.6/site-packages (from prompt-toolkit==2.0.10) (0.1.7)
ERROR: jupyter-console 5.2.0 has requirement prompt-toolkit<2.0.0,>=1.0.0, but you'll have prompt-toolkit 2.0.10 which is incompatible.
Installing collected packages: prompt-toolkit
Found existing installation: prompt-toolkit 1.0.18
Uninstalling prompt-toolkit-1.0.18:
Successfully uninstalled prompt-toolkit-1.0.18
Successfully installed prompt-toolkit-2.0.10
feel well.
Try starting jupyter notebook
.
$ jupyter notebook
/anaconda3/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py:19: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed.
Tested on the web version.
OK! It's done!
(1 hour)
Recommended Posts