Skip to content

%history documentation out of date? #1482

@ahmadia

Description

@ahmadia

In IPython/core/history.py:722

"""Print input history (_i<n> 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)\\

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions