Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing variable name in Spyder

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.

like image 521
VitOne Avatar asked Apr 25 '14 14:04

VitOne


People also ask

How do you change the name of a variable?

Right-click the variable or function name and then click Rename.

How do you define a variable in Spyder?

The Variable Explorer gives you information on the name, size, type and value of each object. To modify a scalar variable, like an number, string or boolean, simply double click it in the pane and type its new value.

How do you change variable Explorer in Spyder?

Go to View/Panes and select Variable Explorer. Show activity on this post. Show activity on this post. You can go to view then in view click on window layout then in that click on reset to spyder default which will give you the default layout of spyder.


1 Answers

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

like image 169
Ludo Schmidt Avatar answered Sep 20 '22 11:09

Ludo Schmidt