I started using ipython recently. Now I often get this message upon doing any action, even simple ones like defining variables:
>>> num = 1
Unhandl
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).