Autoreload of modules in IPython
来源:互联网 发布:wake瑜伽软件下载 编辑:程序博客网 时间:2024/06/08 15:25
ipython很好用,但是如果在ipython里已经import过的模块修改后需要重新reload就需要这样
In [1]: %load_ext autoreloadIn [2]: %autoreload 2In [3]: from foo import some_functionIn [4]: some_function()Out[4]: 42In [5]: # open foo.py in an editor and change some_function to return 43In [6]: some_function()Out[6]: 43
如果想在ipython每次启时自动加载,步骤如下
it may be necessary to generate one first:
1、运行下面的command用来产生ipython_config.py文件
ipython profile create
2、gedit ~/.ipython/profile_default/ipython_config.py添加:
c.InteractiveShellApp.exec_lines = []c.InteractiveShellApp.exec_lines.append('%load_ext autoreload')c.InteractiveShellApp.exec_lines.append('%autoreload 2')
- Autoreload of modules in IPython
- Django ipython autoreload
- debug python in ipython
- Modules in IIS 7
- vfs modules in samba
- Modules in Ionic/Angular
- Sharepoint 2013-A file specified in the modules section of this template already exists.
- Pure A set of small, responsive CSS modules that you can use in every web project.
- debugging python script in ipython
- GWT-Modules: Units of configuration
- Quick Reference of Display Modules
- [MQL5] Modules of Trade Signals
- Eventual Consistency & Modules in Redis
- To Summarize the Error of Ipython Notebook
- Ipython
- Ipython
- ipython
- Ipython
- 疯狂的bug【select -IO复用中】
- 几个小了的IoC容器
- OpenGl实验3
- java尝试用户协同推荐 无优化版
- 根据输入文本生成随机文本
- Autoreload of modules in IPython
- android broadcast receiver
- Ajax实例
- memento (备忘录模式)
- hdu 2602 Bone Collector(0/1背包)
- Junit学习笔记----(马士兵老师)
- ZOJ2334-Monkey King【二项堆】
- 使用chrome调试ajax加载本地文件的时候出现Failed to load resource: Origin null is not allowed by Access-Control-Allow
- 你的未来属于我