I want to save my ipython session (input/output etc upto 500 Mb) into a file and have it reloaded into the buffer on ipython restart. IPython has a few recording mechanisms which do not add up to what would be useful to me.
I figured it should be possible to save the file as described above like this
(write-region (max (- (point-max) 500000) 1) (point-max) "/tmp/test.txt")
I can have this run with a timer as well. But I do not know how I can have it loaded (not executed) in the ipython buffer on startup