DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Save IPython Console History and Output


In IPython console you can use %logstart logfile to save all history commands and the future commands into .

Add -o option (%logstart -o logfile) if you want to save the output along with the inputs. However, note that the output of print() will NOT be saved to logfile.

When logfile parameter omitted, a file ipython_log.py is created.

See details with ?%logstart.

Stop saving with %logstop.



Published

Jun 11, 2020

Last Updated

Jun 11, 2020

Category

Tech

Tags

  • ipython 5
  • log 3
  • ouput 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor