user51462
user51462

Reputation: 2022

Logging source code before output in Spyder console

When you run code in RStudio, it logs both the code and the output in the console (see here). Is it possible to do the same in Spyder?

Upvotes: 0

Views: 38

Answers (1)

Carlos Cordoba
Carlos Cordoba

Reputation: 34136

(Spyder maintainer here) You can run cells and get their contents printed on the console by going to the menu

Tools > Preferences > Editor > Run code

and enabling the option called Copy full cell contents to the console when running code cells.

Upvotes: 1

Related Questions