Show More
@@ -693,9 +693,10 b" def magic_history(self, parameter_s = ''):" | |||
|
693 | 693 | |
|
694 | 694 | |
|
695 | 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 |
- %re |
|
|
699 | - %recall (no arguments): | |
|
699 | 700 | |
|
700 | 701 | Place a string version of last computation result (stored in the special '_' |
|
701 | 702 | variable) to the next input prompt. Allows you to create elaborate command |
@@ -707,17 +708,17 b' def magic_rep(self, arg):' | |||
|
707 | 708 | In[3]: %rep |
|
708 | 709 | In[4]: heivaan_ <== cursor blinking |
|
709 | 710 | |
|
710 |
%re |
|
|
711 | %recall 45 | |
|
711 | 712 | |
|
712 | 713 | Place history line 45 on the next input prompt. Use %hist to find |
|
713 | 714 | out the number. |
|
714 | 715 | |
|
715 |
%re |
|
|
716 | %recall 1-4 | |
|
716 | 717 | |
|
717 | 718 | Combine the specified lines into one cell, and place it on the next |
|
718 | 719 | input prompt. See %history for the slice syntax. |
|
719 | 720 | |
|
720 |
%re |
|
|
721 | %recall foo+bar | |
|
721 | 722 | |
|
722 | 723 | If foo+bar can be evaluated in the user namespace, the result is |
|
723 | 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