Give the Python Terminal a Persistent History

后端 未结 3 1458
日久生厌
日久生厌 2020-12-03 02:48

Is there a way to tell the interactive Python shell to preserve its history of executed commands between sessions?

While a session is running, after commands have be

3条回答
  •  广开言路
    2020-12-03 03:12

    Use IPython.

    You should, anyway, because it's awesome: persistent command history is just one of the many many ways it's better than the stock Python shell.

提交回复
热议问题