Issue
Is there a keyboard shortcut to run all code above the selected line in Spyder IDE?
A workaround would be to select all code above that line and execute. But I am looking for a simpler solution.
Solution
(Spyder maintainer here) You can use cells for this. A cell is created when you write a comment of the form # %%
and it breaks your file in two: all the code before that comment and the one afterwards.
Each of these cells can be evaluated with the shortcuts Shift+Enter (run cell and advance to the next one) and Ctrl+Enter (run cell and remain on it).
Answered By - Carlos Cordoba
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.