Description
Right now, the Python native REPL can operate quite well with the Python: Run Selection/Line in Native Python REPL
"smart send" feature. However, it would be very convenient to run larger blocks of code without having to manually select it. Smart send can do a bit of that -- it can run an entire for loop block, for instance -- but often when doing data science tasks you might need to, for example, run several for loop blocks and several lines of code. In those instances, to use the native REPL you need to manually select exactly those lines, and gives you no way of easy running multiple large blocks like that.
What I would propose is the simple adoption of the de-facto standard of using "cells" demarcated by #%%
or # %%
currently in use by Python tools like Jupyter or Spyder, as described here https://code.visualstudio.com/docs/python/jupyter-support-py . It would require adding additiona keyboard shortcuts of:
Python: Run Cell in Native Python REPL
Python: Run Cell and Advance in Native Python REPL