ipython
ipython更新
%load_ext autoreload
%autoreload 2
%autoreload: 自动重载%aimport排除的模块之外的所有模块。 %autoreload 0: 禁用自动重载 %autoreload 1: 自动重载%aimport指定的模块。 %autoreload 2: 自动重载%aimport排除的模块之外的所有模块。 %aimport: 列出需要自动重载的模块和不需要重载的模块。 %aimport foo: 重载模块foo并将它标记为需要自动重载。 %aimport -foo: 将模块foo标记为不需要自动重载。
自定义预设路径
.ipython/profile_default/startup/startup.py
在
if ‘IPYTHON‘ in globals():
ipython.magic(‘load_ext autoreload’)
ipython.magic(‘autoreload 2’)
ipython
http://orikey0.github.io/2024/01/24/ipython/