When I save a python source code file, I want to re-run the script. Is there a command that works like this (sort of like nodemon for node)?
You actually can use nodemon with python, from their docs:
Running non-node scripts nodemon can also be used to execute and monitor other programs. nodemon will read the file extension of the script being run and monitor that extension instead of .js if there's no nodemon.json:
nodemon --exec "python -v" ./app.pyNow nodemon will run app.py with python in verbose mode (note that if you're not passing args to the exec program, you don't need the quotes), and look for new or modified files with the .py extension.
https://github.com/remy/nodemon#running-non-node-scripts