禁用 IPython 历史记录 history.sqlite

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

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