Codespaces provides a cloud based version of VSCode that is attached to a github repository. The environment can be configured to allow you to run your code online.
https://docs.github.com/en/codespaces/overview
Note: I've done some testing with Live Share and it is sensitive to firewall configuration my experience with it inside my corporate firewall at work didn't work well. At home, without those restrictions may be better. Have Fun.
I've created a repository for a Python command line hello world that will run in a codespace. https://github.com/cantis/CodespaceHelloWorld
Evan Young 10 April 2023