[IPython-dev] Fwd: [SciTech] ActivePapers Python edition

Konrad Hinsen konrad.hinsen at fastmail.net
Thu Dec 12 09:54:42 EST 2013


Matthias BUSSONNIER writes:

 > the history sqlite file (.ipython/profile_default/history.sqlite) 
 > contains lots of info like raw input entered by user.
 > 
 > you are probably interessed in session and history and join the two:
...

Thanks, that looks like what I need, though I can't say I am looking forward
to have to deal with SQL.

Zoltán Vörös writes:

 > You could also look at the python interface ipython-get-history.py at 
 > https://github.com/ipython/ipython/blob/master/examples/core/ipython-get-history.py

Python interface sounds much better :-) I'll explore this first.

Thomas Kluyver writes:

 > 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

That raises an important point: what if the user restarts the kernel?
I should at least try to recognize that situation, because it can
completely disconnect the state of the date (in the ActivePaper) from
the state of the notebook.

 > 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

Yes, I want to keep the user interface as close to standard IPython
notebook usage as possible. It's the surrounding environment that
changes, from "the user's computer" to "the contents of an
ActivePaper".

Thanks to everyone,
  Konrad.



More information about the IPython-dev mailing list