python - Saving session on IPython with both input and output -
saving input in ipython session has been asked few times : how save python interactive session? i wish save both input , output session (which includes error messages). the command saving input %save <filename> <line start>-<line end> . there similar command saving output along input ? in [39]: import numpy np in [40]: = np.linspace(0,1) in [41]: a.size out[41]: 50 in [42]: print 'apparently default size 50' file "<ipython-input-42-484cde9a53d0>", line 1 print 'apparently default size 50' ^ syntaxerror: missing parentheses in call 'print' in [43]: print('need used python3 print function!') need used python3 print function!