Select code and run IDE/code editor for Python

Question:

Is there an IDE/code editor for Python that allows a user to highlight and run a portion of syntax on the window like how SAS allows it in its UI? I’m aware of code blocks in Jupyter Notebook but I would like to know if there’s something that’s more flexible/free-form exists?

Asked By: bagelanta

||

Answers:

there something like this in Spyder you can divide your code in executable cells like in Jupyter or other notebooks and you can execute with Ctrl + Enter.
This hotkeys and shortcuts have been discussed here if you need more informations.

Stack answer on hotkeys in Spyder

Answered By: Emile Dadou
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.