Issue
I want to group arbitrary blocks of code, say parts of a script. And then I want to be able to collapse them, just like I can collapse classes, function definitions and loops.
Solution
This can be done in Spyder 4 or later by defining a code block with a comment like so:
# %% lines below here can be collapsed
Answered By - Joooeey
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.