I am using Pycharm 2018.2 version in ubuntu 18.04 and I am trying to use the JupyterNoteBook inside the pycharm it's been loading and creating a new notebook. But the cell in the Jupyter always shows busy and it throws some error like ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'. Eventhough, I restarted the kernel again and again it throws the same error. Even I uninstalled and after the re-installation it throws the same error. Error it throws

Can aynone please help me to resolve this error?

Thanks in advance !

4

There are 4 best solutions below

0
On BEST ANSWER

Just upgrade the console:

pip install -U jupyter_console
0
On

The link to the post from hpaulj in the first comment above provides the steps necessary to correct this issue. I, like Bhavani, followed the steps in that post, and my Jupyter notebook is now working. HERE IS THE LINK for convenience.

0
On

conda install -c conda-forge notebook

0
On

Reinstall the toolkit

  1. pip uninstall prompt-toolkit
  2. pip install --upgrade prompt-toolkit