Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Doc magic history #218

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+12 −0
Split
View
@@ -294,6 +294,18 @@ def magic_history(self, parameter_s = ''):
-f FILENAME: instead of printing the output to the screen, redirect it to
the given file. The file is always overwritten, though IPython asks for
confirmation first if it already exists.
+
+ Examples
+ --------
+ This example demonstrates the functionality of the command %history -n
+
+ In [4]: history -n
+ 1 :
+ ls
+ 2 :
+ x = 10
+ 3 :
+ print x
"""
if not self.shell.displayhook.do_full_cache: