Can I stop execution of current module in ipython without leaving ipython

后端 未结 5 1584
遥遥无期
遥遥无期 2021-01-11 10:00

I\'d like to break out of the currently running program and be dropped back to the shell (without having to restart ipython)

5条回答
  •  广开言路
    2021-01-11 10:18

    I had the same issue after reinstalling console2 and ipython on Windows. If you use the ipython.exe launcher, this seems to be a problem and it just closes the whole window. However, if you instead launch ipython with

    python C:\python27\scripts\ipython-script.py

    then it catches and handles the KeyboardInterrupt just fine and leaves me at the ipython prompt. Hooray.

提交回复
热议问题