相关疑难解决方法(0)

ipython的历史文件在哪里

我无法确定ipython存储历史的位置.

一个.没有〜/ .pythonhistory:

12:49:00/dashboards $ll ~/.py*
ls: /Users/steve/.py*: No such file or directory
Run Code Online (Sandbox Code Playgroud)

湾 python启动文件中没什么特别之处:

12:49:07/dashboards $echo $PYTHONSTARTUP
/shared/.pythonstartup
12:49:43/dashboards $cat /shared/.pythonstartup
import rlcompleter
import readline

readline.parse_and_bind("tab: complete")
Run Code Online (Sandbox Code Playgroud)

C.但是:当我启动ipython时,我确实有很多历史可用.

那么历史存储在哪里?

更新 @Stefano的答案导致了正确的方法:这是实际路径

13:30:05/shared $ll ~/.ipython/profile_default/history.sqlite
-rw-r--r--  1 steve  staff  372736 Jun  3 12:48 /Users/steve/.ipython/profile_default/history.sqlite
Run Code Online (Sandbox Code Playgroud)

python ipython

28
推荐指数
2
解决办法
9401
查看次数

标签 统计

ipython ×1

python ×1