我正在运行iPython(Jupyter)通过Anaconda,在macsierra上,通过iTerm,使用$SHELL=bash
-如果我错过了任何有用的设置细节,请告诉我。你知道吗
我喜欢上面提到的$HISTCONTROL
方面。总结一下这个答案:当遍历历史时(即点击向上箭头),删除重复的条目是很有帮助的,这样您就不会多次滚动同一个命令,这是通过$HISTCONTROL=ignoreboth:erasedups
完成的。你知道吗
在Python解释器(特别是iPython)中是否有类似的方法?我已经安装了readline
,感觉这是一个很好的开始,但是没有什么能解决这个问题,我会认为这是在某个地方建立的。你知道吗
通过深入研究IPython,筛选解释不充分和/或不推荐使用的文档,我拼凑出了一个似乎可以很好地工作的解决方案,尽管我确信它不是最佳的,原因有很多,即:
GROUP BY
数据库运行一个history
查询history
,而忽略output_history
和sessions
表我将以下内容放在
dedupe_history.py
内的一个文件中(我将其命名为dedupe_history.py
,但名称不相关):相关问题 更多 >
编程相关推荐