Control ipython history length

馋奶兔 提交于 2019-12-10 17:25:47

问题


The title pretty much says what I want.

I want to have more than 1000 lines of input in my ipython-history; which means that pressing arrow-up commands older are showing up. Is this possible? (probably somewhere in ipython-config()?)

Thanks


回答1:


In http://2sn.org/python/ipython_config.py there is a

# c.TerminalInteractiveShell.history_length = 10000

Does it work?



来源:https://stackoverflow.com/questions/26061049/control-ipython-history-length

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!