Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' in Jupyter Notebook inside the Pycharm IDE?

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 !

like image 952
Bhavani K Avatar asked Oct 02 '18 05:10

Bhavani K


2 Answers

Just upgrade the console:

pip install -U jupyter_console
like image 151
Elazar Avatar answered Nov 20 '22 12:11

Elazar


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.

like image 4
Thom Ives Avatar answered Nov 20 '22 10:11

Thom Ives