Override global variable inside function not working with Spyder 4

(Spyder maintainer here) You need to go to the menu

Run > Configuration per file

and activate the option called Run in console's namespace instead of an empty one, for you to be able to modify global variables in your code.

Leave a Comment