Show More
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | """ |
|
3 | 3 | Logger class for IPython's logging facilities. |
|
4 | 4 | |
|
5 |
$Id: Logger.py 9 |
|
|
5 | $Id: Logger.py 974 2005-12-29 19:48:33Z fperez $ | |
|
6 | 6 | """ |
|
7 | 7 | |
|
8 | 8 | #***************************************************************************** |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Magic functions for InteractiveShell. |
|
3 | 3 | |
|
4 |
$Id: Magic.py 97 |
|
|
4 | $Id: Magic.py 974 2005-12-29 19:48:33Z fperez $""" | |
|
5 | 5 | |
|
6 | 6 | #***************************************************************************** |
|
7 | 7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
@@ -931,9 +931,14 b' Currently the magic system has the following functions:\\n"""' | |||
|
931 | 931 | -o: log also IPython's output. In this mode, all commands which |
|
932 | 932 | generate an Out[NN] prompt are recorded to the logfile, right after |
|
933 | 933 | their corresponding input line. The output lines are always |
|
934 | prepended with a #[Out]# marker, so that the log remains valid | |
|
934 | prepended with a '#[Out]# ' marker, so that the log remains valid | |
|
935 | 935 | Python code. |
|
936 | 936 | |
|
937 | Since this marker is always the same, filtering only the output from | |
|
938 | a log is very easy, using for example a simple awk call: | |
|
939 | ||
|
940 | awk -F'#\\[Out\\]# ' '{if($2) {print $2}}' ipython_log.py | |
|
941 | ||
|
937 | 942 | -t: put timestamps before each input line logged (these are put in |
|
938 | 943 | comments).""" |
|
939 | 944 |
General Comments 0
You need to be logged in to leave comments.
Login now