Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated magic_history docstring #1483

Merged
merged 2 commits into from Mar 10, 2012
Merged

Conversation

ahmadia
Copy link
Contributor

@ahmadia ahmadia commented Mar 9, 2012

fixes #1482

%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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave at least one example of specifying the history required here, e.g. %history 1-5.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you take a look at the source file, you'll see examples like this that I didn't remove.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I see them. Actually, looking at other magic commands, I think this line should be replaced by the overview of the arguments, like %history [-o -p -t -n] [-f filename] [range | -g pattern | -l number]

@ahmadia
Copy link
Contributor Author

ahmadia commented Mar 10, 2012

does this need any other work?

@takluyver
Copy link
Member

That looks good, thanks. Merging now.

takluyver added a commit that referenced this pull request Mar 10, 2012
updated magic_history docstring
@takluyver takluyver merged commit 2f66362 into ipython:master Mar 10, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

%history documentation out of date?
2 participants