##// END OF EJS Templates
updated magic_history docstring
Aron Ahmadia -
Show More
@@ -717,9 +717,7 b' def _format_lineno(session, line):'
717 def magic_history(self, parameter_s = ''):
717 def magic_history(self, parameter_s = ''):
718 """Print input history (_i<n> variables), with most recent last.
718 """Print input history (_i<n> variables), with most recent last.
719
719
720 %history -> print at most 40 inputs (some may be multi-line)\\
720 %history -> prints all history from this session
721 %history n -> print at most n inputs\\
722 %history n1 n2 -> print inputs between n1 and n2 (n2 not included)\\
723
721
724 By default, input history is printed without line numbers so it can be
722 By default, input history is printed without line numbers so it can be
725 directly pasted into an editor. Use -n to show them.
723 directly pasted into an editor. Use -n to show them.
@@ -772,9 +770,10 b" def magic_history(self, parameter_s = ''):"
772 --------
770 --------
773 ::
771 ::
774
772
775 In [6]: %hist -n 4 6
773 In [6]: %hist -n 4-6
776 4:a = 12
774 4:a = 12
777 5:print a**2
775 5:print a**2
776 6:%hist -n 4-6
778
777
779 """
778 """
780
779
General Comments 0
You need to be logged in to leave comments. Login now