From a632e49e7f22e371bacdcad8a75e1db8be7a0db2 2010-04-25 22:15:58 From: Fernando Perez Date: 2010-04-25 22:15:58 Subject: [PATCH] Add mention of %rep to interactive use tutorial section of the docs. Closes https://bugs.launchpad.net/ipython/+bug/436120 --- diff --git a/docs/source/interactive/tutorial.txt b/docs/source/interactive/tutorial.txt index 1f5ccda..aa84043 100644 --- a/docs/source/interactive/tutorial.txt +++ b/docs/source/interactive/tutorial.txt @@ -120,6 +120,17 @@ IPython or in a text editor. You can also save all your history by turning on logging via %logstart; these logs can later be either reloaded as IPython sessions or used as code for your programs. +In particular, note taht the %rep magic function can repeat a command or get a +command to the input line for further editing:: + + $ l = ["hei", "vaan"] + $ "".join(l) + ==> heivaan + $ %rep + $ heivaan_ <== cursor blinking + +For more details, type ``%rep?`` as usual. + Define your own system aliases ------------------------------