Best workflow for editing python script on laptop and pushing changes manually via usb to handheld machine?

This is making debugging rather a nuisance.

At first I made dummy folders on the laptop so I could do most tests by running the script on this laptop machine but now I am wanting to run the .bat file, which isn’t on the laptop I am copying the edits across manually by usb but it gets irritating when I see errors in the script and then having to go back to make edits on laptop, push again manually, only to find another erorr and so forth.

I am doing some edits on the handheld, which has vim as well but the vim setup is not as nice as on the laptop, with various niggles and then I have to be careful to pull rather than push and not get mixed up which I have done once.

It would of course help to have a network connection between them both but the handheld doesn’t have internet.

I was looking in to usb-c networking which is maybe possible? not sure how hard it would be to setup.

Not having internet does not mean that you can not have your laptop talk to a handheld device!
If you look online, you might find ways to connect devices through USB.
I’m not sure what help we can offer you!