How to run .py file cell by cell in Jupyterlab4

It seems I cannot run .py file in Jupiterlab4 cell by cell using #%%, like in Vscode and Spyder. How can I do that in Jlab