禁用 IPython 历史记录 history.sqlite

在IPython的默认配置文件夹(Windows为%UserProfile%\.ipython\profile_default\、Linux为~/.ipython/profile_default/)中,新建ipython_config.json文件,填入以下内容即可禁用IPython历史记录(history.sqlite)。

{
    "HistoryManager": {
        "enabled": false
    }
}

IPython - Configuration and customization - Terminal options - HistoryManager.enabled

posted @ 2025-10-28 19:59  Accurio  阅读(17)  评论(0)    收藏  举报