Started developing recently on my Presto, and pretty quickly grew tired of reloading my script with Thonny…
I develop in VS Code (I’m used to it and it has better autocomplete than Thonny + Copilot + git support etc.) and to reload any small changes in Presto, had to switch to Thonny, click Stop, then right click on the correct file + click upload, then double click on file in Presto file listing then click Run. Gah!
So googled around for alternatives, first found rshell
, but even that doesn’t have a simple way to just run a given script.
But then I found mpremote
and it was exactly what I was looking for.
Now I can just execute a one-liner in terminal:
mpremote fs cp my_script.py : && mpremote run my_script.py
So essentially just press up arrow and enter on my keyboard every time I want to reload.
And then it will stop currently running script, upload the changed file and then run it. Yay!
Figured it would be worth mentioning here as others might find it useful.
Anyone else have any tips about their development workflow or tools?