ipython/ipython — Issue #1482: %history documentation out of date?
Author: ahmadia
Created: 2012-03-09 15:26:38+00:00
State: open

In IPython/core/history.py:722

"""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)\\

...

Ranges of history can be indicated using the syntax:
4 : Line 4, current session
4-6 : Lines 4-6, current session

...

Does the range syntax supercede the original syntax for history? Should these lines be removed?

%history n -> print at most n inputs\\
%history n1 n2 -> print inputs between n1 and n2 (n2 not included)\\