[IPython-dev] Fwd: [SciTech] ActivePapers Python edition
Thomas Kluyver
takowl at gmail.com
Mon Dec 9 12:35:04 EST 2013
On 9 December 2013 05:28, Konrad Hinsen <konrad.hinsen at fastmail.net> wrote:
> That looks good enough for my purposes. Could you give me a pointer
> to how I can access the kernel's history information for doing
> such a comparison?
>
Matthias and Zoltan have pointed you to the SQLite history database.
However, while the kernel's running, you can make a history_request to
retrieve history:
http://ipython.org/ipython-doc/dev/development/messaging.html#history
I'm assuming that your code will be running in the notebook server process,
which handles saving and loading files. It may be that the current
implementation of history_request doesn't support selecting the history of
an entire session, but the underlying APIs it uses do, so it would be easy
to add that to the messages.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131209/577480d5/attachment.html>
More information about the IPython-dev
mailing list