14

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 !

Elazar
  • 20,415
  • 4
  • 46
  • 67
Bhavani K
  • 163
  • 1
  • 1
  • 13
  • 2
    There's some sort of bug in the latest `Jupyter` installation - apparently a conflict in the required version of `prompt_toolkit`. https://stackoverflow.com/questions/52551878/problems-upgrading-ipython-prompt-toolkit-incompatibilities. It's not you! – hpaulj Oct 02 '18 at 05:32
  • Thank you sir ! Is there any other way to use Jupyter in pycharm2018.2 – Bhavani K Oct 02 '18 at 05:39
  • 3
    The problem is solved by uninstalling the old prompt_toolkit version and upgrading it to prompt_toolkit version 2.0.5 it works fine. It works for me thank you sir – Bhavani K Oct 02 '18 at 06:17
  • @BhavaniKasiviswanathan, I am having the same problem. How did you go about uninstalling and upgrading? Can you post an answer to your own question too? That would help me and others. Thanks! – Thom Ives Oct 02 '18 at 22:08

4 Answers4

31

Just upgrade the console:

pip install -U jupyter_console
Elazar
  • 20,415
  • 4
  • 46
  • 67
4

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.

Thom Ives
  • 3,642
  • 3
  • 30
  • 29
0

conda install -c conda-forge notebook

0

Reinstall the toolkit

  1. pip uninstall prompt-toolkit
  2. pip install --upgrade prompt-toolkit
tatigo
  • 2,174
  • 1
  • 26
  • 32