You can do X11 forwarding with ssh. If you start an ssh session with -Y
or -X
it'll enable X11 forwarding. So, any program you run in that session that creates a window, the window will be drawn locally. You can also pass ssh
a command to run :
$ ssh -Y user@$some_ip /path/to/some/remote/python_script.py
If you want a full gui session, then you'll want to setup an RDP or VNC server on the rasp pi and connect to it with some client.