Changing variable name in Spyder

VitOne picture VitOne · Apr 25, 2014 · Viewed 27.7k times · Source

I have a program with many formulas and variables. I need to change the name of some of these variables. Is there any command or function in Spyder that can help me change all the names in one step?

I am looking for something like the Matlab's MAIUSC+ENTER.

Answer

Ludo Schmidt picture Ludo Schmidt · Mar 22, 2019
1) Select the variable you want to change, then Press CTRL + R
2) Enter the new variable name you want. (in replace by)
3) Replace all

enter image description here