Closed upgradeQ closed 4 years ago
Thanks for the suggestion, @HQupgradeHQ. I've done something similar in GNU/Linux, where it's even easier to use the watch command. If running your script is expensive for some reason, though, your version would avoid extra runs.
I didn't include that in the instructions, because I found it's not useful once you have more than a single screen of code. There's no way to synchronize the scrolling between the code and the display. You could add a --traced
option, but that still seems too fiddly to be practical.
I'm going to close this issue for now, but please add a comment if you do find it practical to use some technique like this when you don't have real editor integration.
Yes it is useful to evaluate something while continuous execution is going.
As a workaround those editors that don't have plugin , but do support autosave, might try using this script. Run
python watch.py
in split , edite.py
while autosave is onSo for vim there is plugin and for VSCode #218 it's built-in