##// END OF EJS Templates
Wrote example for %history...
Vishnu S G -
Show More
@@ -347,6 +347,16 b" def magic_history(self, parameter_s = ''):"
347 -f FILENAME: instead of printing the output to the screen, redirect it to
347 -f FILENAME: instead of printing the output to the screen, redirect it to
348 the given file. The file is always overwritten, though IPython asks for
348 the given file. The file is always overwritten, though IPython asks for
349 confirmation first if it already exists.
349 confirmation first if it already exists.
350
351 Example
352 -------
353
354 ::
355
356 In [6]: %hist -n 4 6
357 4:a = 12
358 5:print a**2
359
350 """
360 """
351
361
352 if not self.shell.displayhook.do_full_cache:
362 if not self.shell.displayhook.do_full_cache:
General Comments 0
You need to be logged in to leave comments. Login now