Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spyder python: Skip printing all code when using "run current cell"

When I use "run current cell" or "run selection" the compiler print ALL the code it will run to the console and then runs it.

Any way to supress this? I dont want to flood the console with all this non-useful information. I know what code i ran, I don't need it repeated (i just need it to run:).

like image 607
HerrErik Avatar asked Dec 06 '17 08:12

HerrErik


People also ask

How do I run only part of a python code Spyder?

Option 1 - Select parts of the code and hit F9 This runs the selected code. No surprise there. Hit F9 again, and the same selection is executed once more.

How do you run current cell on Spyder?

The key to run the current line by itself is F9 . The shortcut ctrl+F10 is used if you are in debugging mode. You can see a list of shortcuts by selecting Preferences in the Tool menu, and then clicking on Keyboard shortcuts .

How do you run codes on Spyder?

To run a script in Spyder IDE, there are two options: use the command line option, use runfile in IPython.


1 Answers

(Spyder maintainer here) Sorry, there is no way to not print cells in the IPython console in any version of Spyder 3.

However, we are working to make this possibility available in Spyder 4, to be released in 2019.

like image 115
Carlos Cordoba Avatar answered Oct 22 '22 13:10

Carlos Cordoba