[IPython-User] Logging in new IPython

Gökhan Sever gokhansever@gmail....
Wed Aug 3 23:03:03 CDT 2011


Finally, I get the new Ipython running. qtconsole is up too. I
installed v0.11 The very first thing I have noticed is there is not
.ipython folder under my home directory.

ipython -help and ipython -help-all provides a lot of reading for tomorrow :)

I have an alias in .bashrc as:
# fixed after getting a single dash deprecation warning for pylab
alias ii='ipython --pylab'

Now typing "ii"
WARNING: `-pylab` flag has been deprecated.
    Use `--pylab` instead, or `--pylab=foo` to specify a backend.

Is this warning temporary?

Thanks for all your efforts and especially well-documenting the new changes.

More testing comes later...

On Wed, Aug 3, 2011 at 3:16 PM, Gökhan Sever <gokhansever@gmail.com> wrote:
> Hi,
> I tend to log my sessions and index them via full-text searching tool called
> "recoll" along with many other files (indeed tons of them). Being able to
> have IPython history in the form of text would make my life easier since
> recoll can easily crawl text files. In addition, recoll has a command line
> tool to dump xapian database into a text file with some basic text
> statistics options. This way, I can easily get statistics about my most used
> Python commands and such.
> I plan to upgrade my beloved IPython v0.10 to the new release tonight. I
> will let you know how my experience goes with the new one. Hopefully, I will
> figure out a way to get text outputs from the sqlite saved logs.
> Thanks,
> On Wed, Aug 3, 2011 at 9:30 AM, Thomas Kluyver <takowl@gmail.com> wrote:
>> 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
> --
> Gökhan


More information about the IPython-User mailing list