Issue
Let's say I'm on line 500 in spyder, and I want to run everything from that line and above (lines 1-500), is there a shortcut to select the lines quickly. Right not I'm highlighting the lines and scrolling up and using shift and up arrow but both of them take some time to scroll. Is there a faster way to select, similar to select all but only for the specific lines 1-500?
Solution
(Spyder maintainer here) The easiest way to do what you want is by creating code cells. These are sections in your file separated by comments of the form # %%
, which can be run independently by placing the cursor inside them and pressing the shortcuts Ctrl+Enter
(run cell) and Shift+Enter
(run cell and and advance to the next one).
Please refer to our documentation for more details.
Answered By - Carlos Cordoba
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.