Changing variable name in Spyder

前端 未结 3 675
北海茫月
北海茫月 2020-12-30 23:42

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 a

相关标签:
3条回答
  • 2020-12-31 00:00

    No way to do it currently. It's an open issue. https://github.com/spyder-ide/spyder/issues/415

    0 讨论(0)
  • 2020-12-31 00:04
    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
    

    0 讨论(0)
  • 2020-12-31 00:23

    Alternatively, PyCharm can be used instead of Spyder, which is now supported in Anaconda.

    In PyCharm: Select the variable > Right Click > Refactor > Rename

    0 讨论(0)
提交回复
热议问题