Windows 在 %UserProfile%\.ipython\profile_default\ 文件夹中或 Linux 在 ~/.ipython/profile_default/ 目录中(默认配置文件名为profile_default),新建ipython_config.json文件,填入以下内容即可禁用 IPython 历史记录(history.sqlite)。
{"HistoryManager": {"enabled": false}
}
IPython - Configuration and customization - Terminal options - HistoryManager.enabled