2015-10-09 47 views
6

我试过增加IPython的历史长度以下这篇文章: Control ipython history length通过更改c.TerminalInteractiveShell.history_length~/.ipython/profile_default/ipython_config.py增加IPython的历史长度

配置文件似乎在启动时执行(如果我在文件中把print('test-startup'),它的打印,当我开始的IPython)

但它似乎并不产生任何影响,反正是有检查的历史从IPython的内部尺寸(有点像你怎么能在bash做echo $HISTSIZE; echo $HISTFILESIZE?)

回答

7

使用

In[3]: %config TerminalInteractiveShell.history_length 
Out[3]: 10000