Reputation: 5282
I use Spyder as my Python IDE. In most of what I do I use the editor to write code and execute portions of the program one at a time. I typically go back and forth, change things, add pieces, execute portions... you get it. Is there a way to save to file what Spyder shows in the console portion of the IDE after each portion of code is executed?
Upvotes: 5
Views: 11242
Reputation: 11
One way to capture entire console output of Sypder IDE: 1. Go to "Profile" (Shortcut: F10) under "Run" Tab. 2. On Right hand side, you can see Run, Stop and Output buttons. 3. Click on Run and the entire console session is captured under Output.
Hope, this helps. Kindly correct me if I am wrong.
Upvotes: 0
Reputation: 34186
(Spyder dev here) Well, there is a way to save the output shown in our consoles but not after each execution. You have to do it manually, like this:
For our Python consoles, you need to do a right mouse click over any console and select the option Save history log.
For our IPython consoles, you need to do a right mouse click over any console and select the option Save as HTML/XML
Upvotes: 5