在 ipython 中,我有 ipython_config.py
当我对此文件进行更改时,如何重新加载 ipython ? (无需重启ipython)
例如更改提示。
最佳答案
据我所知,你不能 - 当你启动 IPython 时会读取该文件。您可以在 IPython 运行时更改任何配置的值:
%config PromptManager.in_template = "\\#>>>"
不过,这不会存储在配置文件中。
关于ipython 重新加载 ipython_config.py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11354830/