ipython rolling log -


i want have last 500mb worth of ipython input , output saved file

the saving described above should able around instances when have kill ipython. example, saving based on timer

i want have file reloaded (not re-executed) @ startup. file gets updated in rolling fashion

how can achieve this?

ipython logs input - it's stored in history.sqlite in profile folder (run ipython locate profile see is). turn on output logging well, edit ipython_config.py , search 'db_log_output'. captures output resulting displayhook (with out [n]: prompt), not printed output.

to @ history previous session, can use %hist ~1/1-10 (lines 1-10 of session before current one). works magic commands %rerun, %recall , %save.

if want recorded text file, have @ %logstart magic.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -

java Extracting Zip file -