访问间谍历史记录日志

问题描述 投票:0回答:1

在spyder中,我经常通过命令回顾过去写的代码:

%hist -g print,如果我想查看我的打印报表。

但是最近我的大部分历史都消失了,我只能使用最近几天写的代码。

我想手动访问历史记录日志,并且从多个来源已经看到它应该存储在文件'history.py'中。 (例如How to see the console history of all commands in the IPython console in Spyder)。

我已经阅读了所有的'history.py'文件,它们最多定义了一个History类,但不包含我过去编写的实际代码行。

所以我的问题是:哪个文件包含历史记录本身,如何访问它?

python spyder history
1个回答
0
投票

[Spyder维护人员在这里)Spyder的历史记录可在

~/.spyder-py3/history.py

其中~代表您在macOS和Windows上的Users目录。

在现代Linux发行版中,此文件位于

~/.config/spyder-py3/history.py

© www.soinside.com 2019 - 2024. All rights reserved.