##// END OF EJS Templates
Prefer %recall over %rep in docstring.
Thomas Kluyver -
Show More
@@ -693,9 +693,10 b" def magic_history(self, parameter_s = ''):"
693
693
694
694
695 def magic_rep(self, arg):
695 def magic_rep(self, arg):
696 r"""Repeat a command, or get command to input line for editing
696 r"""Repeat a command, or get command to input line for editing. %recall and
697 %rep are equivalent.
697
698
698 - %rep (no arguments):
699 - %recall (no arguments):
699
700
700 Place a string version of last computation result (stored in the special '_'
701 Place a string version of last computation result (stored in the special '_'
701 variable) to the next input prompt. Allows you to create elaborate command
702 variable) to the next input prompt. Allows you to create elaborate command
@@ -707,17 +708,17 b' def magic_rep(self, arg):'
707 In[3]: %rep
708 In[3]: %rep
708 In[4]: heivaan_ <== cursor blinking
709 In[4]: heivaan_ <== cursor blinking
709
710
710 %rep 45
711 %recall 45
711
712
712 Place history line 45 on the next input prompt. Use %hist to find
713 Place history line 45 on the next input prompt. Use %hist to find
713 out the number.
714 out the number.
714
715
715 %rep 1-4
716 %recall 1-4
716
717
717 Combine the specified lines into one cell, and place it on the next
718 Combine the specified lines into one cell, and place it on the next
718 input prompt. See %history for the slice syntax.
719 input prompt. See %history for the slice syntax.
719
720
720 %rep foo+bar
721 %recall foo+bar
721
722
722 If foo+bar can be evaluated in the user namespace, the result is
723 If foo+bar can be evaluated in the user namespace, the result is
723 placed at the next input prompt. Otherwise, the history is searched
724 placed at the next input prompt. Otherwise, the history is searched
General Comments 0
You need to be logged in to leave comments. Login now