Command-line options to IPython *scripts*?

前端 未结 5 819
暖寄归人
暖寄归人 2020-12-23 13:58

I am often asked to debug Python scripts written by others. I would like to send these scripts to IPython so it will drop into an IPython shell at the point the script fail

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 14:33

    I know there's an already accepted solution, but in the most recent version of ipython this won't work. Here's a cut and paste of the command I use to run tornado tests with --autoreload

    ipython --c="%run test.py --autoreload"
    

    This is using ipython .11.

提交回复
热议问题