控制ipython历史长度 [英] Control ipython history length

查看:144
本文介绍了控制ipython历史长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题几乎说出我想要的东西。

The title pretty much says what I want.

我希望在ipython-history中有超过1000行输入;这意味着显示较旧的向上箭头命令。这可能吗? (可能在ipython-config()的某个地方?)

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()?)

谢谢

推荐答案

http://2sn.org/python/ipython_config.py 中有一个

# c.TerminalInteractiveShell.history_length = 10000

有效吗?

这篇关于控制ipython历史长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆