From 7064115cbe98e7168399d79ad597795390021087 2012-03-09 16:13:49 From: Aron Ahmadia Date: 2012-03-09 16:13:49 Subject: [PATCH] updated magic_history docstring --- diff --git a/IPython/core/history.py b/IPython/core/history.py index 896cc97..54dd290 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -717,9 +717,7 @@ def _format_lineno(session, line): def magic_history(self, parameter_s = ''): """Print input history (_i variables), with most recent last. - %history -> print at most 40 inputs (some may be multi-line)\\ - %history n -> print at most n inputs\\ - %history n1 n2 -> print inputs between n1 and n2 (n2 not included)\\ + %history -> prints all history from this session By default, input history is printed without line numbers so it can be directly pasted into an editor. Use -n to show them. @@ -772,9 +770,10 @@ def magic_history(self, parameter_s = ''): -------- :: - In [6]: %hist -n 4 6 + In [6]: %hist -n 4-6 4:a = 12 5:print a**2 + 6:%hist -n 4-6 """