Error kernel restart: restart failed was reported in the background of jupyter notebook

after successful installation by PIP install jupyter In the CMD window, run the jupyter notebook, and it was found that the left side of the code In [] changed to In [*], and the error was reported In the CMD window as follows:

KernelRestarter: restart failed. Kernel restart failed

solution: PIP install –upgrade ipykernel will upgrade it can run normally, although it will prompt you prompt toolkit version should be between 1.0 and 2.0, but it does not affect the operation of prompyter notebook. In the upgrade process, the main updated module is the prompt_toolkit, it seems that because the version of this module is too low, it leads to

Read More: