<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 4:36 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><div class="gmail_quote">On 2 August 2011 22:49, Gökhan Sever <span dir="ltr"><<a href="mailto:gokhansever@gmail.com" target="_blank">gokhansever@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div></div><div>I am still using an older IPython (v0.10) I plan to transition to the new version soon. Could anybody tell me if it's possible to fully log an Ipython session with proper timestamps? My current solution is still based on the approach posted here -> <a href="http://ipython.scipy.org/moin/Cookbook/Logging" target="_blank">http://ipython.scipy.org/moin/Cookbook/Logging</a></div>
<div><br></div><div>Does the new sql-based history provide this functionality or what's the recommended practice from the dev team for automatic session logging?</div></blockquote></div><br></div>The new history effectively stores this information - there's a timestamp on the start and end of your session, and every line is recorded in order. But we've not yet written any way to access it except inside IPython itself. You can use a tool like SQLite browser to inspect the database directly - the structure isn't very complex.<br>
</blockquote><div><br></div><div>Thanks for the answer Thomas. Is there a way to dump the sqlite database to a text file? Since time-stamping automatically added in the database, I don't see a particular reason for using another logging mechanism.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>The logging functionality is still there as well, although that recipe will need updating a bit to work with 0.11. I think the neatest thing to do is to put the code into a separate file and get the config to load it via exec_lines. (There might be a better way to load the file as an extension - I haven't looked into that bit of code).<br>
<br>Thanks,<br><font color="#888888">Thomas<br></font><br>P.S. Our wiki is moving - see <a href="http://wiki.ipython.org/" target="_blank">http://wiki.ipython.org/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Gökhan<br>