[IPython-User] Logging in new IPython
Thu Aug 4 13:36:14 CDT 2011
On Wed, Aug 3, 2011 at 21:03, Gökhan Sever <email@example.com> wrote:
> 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?
No. Flags, etc. expect two leading '-', as is traditional for non
single-character command-line flags. Since there are many documents,
and even books, that have `ipython -pylab`, it will probably be many
years before we actually let that raise an error, rather than warning
and transforming it into the expected form.
> Thanks for all your efforts and especially well-documenting the new changes.
We do our best, but there are certainly many holes in the
documentation, particularly with respect to configuration.
> More testing comes later...
Let us know how it goes.
> On Wed, Aug 3, 2011 at 3:16 PM, Gökhan Sever <firstname.lastname@example.org> wrote:
>> 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.
>> On Wed, Aug 3, 2011 at 9:30 AM, Thomas Kluyver <email@example.com> wrote:
>>> 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.
> IPython-User mailing list
More information about the IPython-User