[IPython-User] Logging in new IPython

Thomas Kluyver takowl@gmail....
Wed Aug 3 10:30:10 CDT 2011


On 3 August 2011 16:02, Gökhan Sever <gokhansever@gmail.com> wrote:

> 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.
>

There's no tool for that at present, but if you feel like writing one, it
shouldn't be too complex. The file is
.ipython/profile_default/history.sqlite. You can extract timestamps from the
session table, and then use the session number to select rows from the
history table (and the output_history table if you've turned on output
logging as well). In fact, you might be able to import IPython.core.history
to handle loading the database.

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110803/72995f58/attachment.html 


More information about the IPython-User mailing list