Run edited python script step by step / without reloading dataset
In an IDLE editor, one can right click on multiple lines to add breakpoints.  Start IDLE's debugger in Shell, using Shell menu.  Run file.  Click go and execution will start and stop at first breakpoint.  Click go again to run to next breakpoint.
I work on a python script executing standard image recognition processing using tensorflow. Using Python 3.8, Tensorflow 2, Idle lauched from a virtual env.
Since I am following a tutorial, I would like to augment and execute my script chunk by chunk : e.g.

write the code for the data load
execute
write the code for training
execute only training (without reloading the data)

Is there a way to run a python script chunk by chunk, without restarting the idle shell, and keeping results from the previous steps?