How to log everything that occurs in a Python interactive shell session?

后端 未结 5 1463
小蘑菇
小蘑菇 2021-01-05 09:23

I\'d like to have real-time access to both interpreter input and error and standard output. Preferably this information would be written to a file, so that I can poll the fi

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 10:06

    take a look at IPython (haven't used it myself). Here's a section in the docs that might be of particular interest: http://ipython.org/ipython-doc/dev/interactive/reference.html#session-logging-and-restoring

提交回复
热议问题