Why do I get an 'Unhandled exception in event loop' error on ipython

前端 未结 1 1039
暗喜
暗喜 2021-01-11 14:09

I started using ipython recently. Now I often get this message upon doing any action, even simple ones like defining variables:

>>> num = 1

Unhandl         


        
相关标签:
1条回答
  • 2021-01-11 14:55

    I managed to solve the problem. There is some incompatibility between the ipython v7.10.2 and prompt toolkit v3.x. However, everything works fine when downgrading to prompt toolkit v2.x:

    python -m pip install -U prompt-toolkit~=2.0
    

    I was advised to do so by the ipython staff at github (so credit to them).

    0 讨论(0)
提交回复
热议问题