"As I have several lone Python scripts lying around that would really benefit from this, especially if you can keep the env around in the future."
This is possible with github.com/daylinmorgan/viv. Can be used similar to pip-run. But additionally can be used via curl or as a standalone function in your seldom one-off scripts.
The G in Global Interpreter Lock isn't part of the hyperlink! Really good read though
Thanks for the heads up
I like to use pipx (https://pypa.github.io/pipx/) to run python programs in an isolated environment. It basically does what you said, create a virtualenv for a single software. As for the linter in VSCode, I am really enjoying Ruff (https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff). It is insanely fast.
Pipx doesn't yet apply to a local script though. But it will handle those requirements at some points, it's in the work.
Concerning `textual-paint`... "It even handles Ctrl-Z"
That actually isn't a good idea for any program running in a terminal.
True, but it's just a fun demo. And given the context of terminal usage in 2023, this makes the edge case so minimal I wouldn't worry about it.
"As I have several lone Python scripts lying around that would really benefit from this, especially if you can keep the env around in the future."
This is possible with github.com/daylinmorgan/viv. Can be used similar to pip-run. But additionally can be used via curl or as a standalone function in your seldom one-off scripts.