oplaTech About Teaching Archive
Oplatek's external memory

Basic magic with Ipython

Pretty cool features I ignored for long time
%recall 1-3
%rerun 1-3
%hist
%help

The help command is working on the magic commands as well

Feature I needed for a long time is auto reloading of Python modules

 # source: http://ipython.org/ipython-doc/dev/config/extensions/autoreload.html
In [1]: %load_ext autoreload

In [2]: %autoreload 2

In [3]: from foo import some_function

In [4]: some_function()
Out[4]: 42

In [5]: # open foo.py in an editor and change some_function to return 43

In [6]: some_function()
Out[6]: 43
See docs!


http://wisdomthroughknowledge.blogspot.cz/2012/07/accessing-ipython-notebook-remotely.html