Skip to content

Commit

Permalink
Prefer %recall over %rep in docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 30, 2011
1 parent 536ee18 commit 7f2c34d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions IPython/core/history.py
Expand Up @@ -693,9 +693,10 @@ def _format_lineno(session, line):


def magic_rep(self, arg):
r"""Repeat a command, or get command to input line for editing
r"""Repeat a command, or get command to input line for editing. %recall and
%rep are equivalent.
- %rep (no arguments):
- %recall (no arguments):
Place a string version of last computation result (stored in the special '_'
variable) to the next input prompt. Allows you to create elaborate command
Expand All @@ -707,17 +708,17 @@ def magic_rep(self, arg):
In[3]: %rep
In[4]: heivaan_ <== cursor blinking
%rep 45
%recall 45
Place history line 45 on the next input prompt. Use %hist to find
out the number.
%rep 1-4
%recall 1-4
Combine the specified lines into one cell, and place it on the next
input prompt. See %history for the slice syntax.
%rep foo+bar
%recall foo+bar
If foo+bar can be evaluated in the user namespace, the result is
placed at the next input prompt. Otherwise, the history is searched
Expand Down

0 comments on commit 7f2c34d

Please sign in to comment.