[IPython-User] Logging in new IPython
Wed Aug 3 10:30:10 CDT 2011
On 3 August 2011 16:02, Gökhan Sever <firstname.lastname@example.org> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User