Heisenberg
Heisenberg

Reputation: 8816

How to automatically advance to the next line after F9 in Spyder IDE

Coming from RStudio, I'm familiar with the behavior of the cursor automatically moving to the next line after running the current line. I think this makes sense for data analysis. Does Spyder have something similar?

I'm familiar with the concept of cell and auto-advancing cell in Spyder. However, I want to maintain a pure Python script (that can be run with python file.py) for portability, and don't want to use something that only makes sense on Spyder.

Upvotes: 3

Views: 1406

Answers (2)

kikocorreoso
kikocorreoso

Reputation: 4219

Spyder is an IDE. You can create a python script in the editor area, save it and run it using F5.

If you have a file in the editor area there isn't the concept of cell. You can create something similar. Have a look here. Once you have created some 'code cells' you can run these snippets using shift + Enter.

A third option would be to use F9 but you have to select the code you want to execute manually.

Upvotes: 2

Cord Kaldemeyer
Cord Kaldemeyer

Reputation: 6897

I have requested this feature on the Spyder github repository and it will be implemented in version 3.0 which will probably be released next month!

See here for more information: https://github.com/spyder-ide/spyder/issues/3115

Upvotes: 2

Related Questions