I would like to execute my code in segments. Reasons include:
(1) I would like to interact with the plots or data tables in the middle of the script
(2) I would like to execute only part of my code, e.g. the segment for plotting while skipping the rest.
This can be done by using stop functions and/or by highlighting code that I want to run, but this becomes unwieldy and annoying as my program grows.
I'd like to know if there is a function like in Matlab that allows me to section the code and then run by section?
Thank you