Discuss Scratch

LoIdesMio
Scratcher
100+ posts

Pygame in Github Codespaces!

I was wondering if it is possible to use Pygame in Github Codespaces? Last time I tried I got confused so I left it I am also looking for other online code editors to make games and languages any ideas? I only know Python so im looking to learn other stuff :3
bigspeedfpv
Scratcher
500+ posts

Pygame in Github Codespaces!

you can't use an online editor because pygame creates desktop apps?
why not just develop locally
LoIdesMio
Scratcher
100+ posts

Pygame in Github Codespaces!

bigspeedfpv wrote:

you can't use an online editor because pygame creates desktop apps?
why not just develop locally
Eh can't but thanks for letting me know.
imfh
Scratcher
1000+ posts

Pygame in Github Codespaces!

I think replit supports Pygame.
Chiroyce
Scratcher
1000+ posts

Pygame in Github Codespaces!

LoIdesMio wrote:

I was wondering if it is possible to use Pygame in Github Codespaces? Last time I tried I got confused so I left it I am also looking for other online code editors to make games and languages any ideas? I only know Python so im looking to learn other stuff :3
Yes you technically can, but it is a hacky way
docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true selenoid/vnc_firefox:113.0 
docker run --rm --name novnc -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=selenoid -e VNC_SERVER=172.16.5.4:5900 -e VIEW_ONLY=false bonigarcia/novnc:1.1.0

runs a linux gui on docker and use noVNC to forward it
LoIdesMio
Scratcher
100+ posts

Pygame in Github Codespaces!

Chiroyce wrote:

LoIdesMio wrote:

I was wondering if it is possible to use Pygame in Github Codespaces? Last time I tried I got confused so I left it I am also looking for other online code editors to make games and languages any ideas? I only know Python so im looking to learn other stuff :3
Yes you technically can, but it is a hacky way
docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true selenoid/vnc_firefox:113.0 
docker run --rm --name novnc -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=selenoid -e VNC_SERVER=172.16.5.4:5900 -e VIEW_ONLY=false bonigarcia/novnc:1.1.0

runs a linux gui on docker and use noVNC to forward it
cool thanks
Mrcomputer1
Scratcher
500+ posts

Pygame in Github Codespaces!

Chiroyce wrote:

LoIdesMio wrote:

I was wondering if it is possible to use Pygame in Github Codespaces? Last time I tried I got confused so I left it I am also looking for other online code editors to make games and languages any ideas? I only know Python so im looking to learn other stuff :3
Yes you technically can, but it is a hacky way
docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true selenoid/vnc_firefox:113.0 
docker run --rm --name novnc -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=selenoid -e VNC_SERVER=172.16.5.4:5900 -e VIEW_ONLY=false bonigarcia/novnc:1.1.0

runs a linux gui on docker and use noVNC to forward it
There is a non-hacky way: https://github.com/devcontainers/features/tree/main/src/desktop-lite and https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file.
LoIdesMio
Scratcher
100+ posts

Pygame in Github Codespaces!

Mrcomputer1 wrote:

Chiroyce wrote:

LoIdesMio wrote:

I was wondering if it is possible to use Pygame in Github Codespaces? Last time I tried I got confused so I left it I am also looking for other online code editors to make games and languages any ideas? I only know Python so im looking to learn other stuff :3
Yes you technically can, but it is a hacky way
docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true selenoid/vnc_firefox:113.0 
docker run --rm --name novnc -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=selenoid -e VNC_SERVER=172.16.5.4:5900 -e VIEW_ONLY=false bonigarcia/novnc:1.1.0

runs a linux gui on docker and use noVNC to forward it
There is a non-hacky way: https://github.com/devcontainers/features/tree/main/src/desktop-lite and https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file.
cool thanks lol
bigspeedfpv
Scratcher
500+ posts

Pygame in Github Codespaces!

Mrcomputer1 wrote:

There is a non-hacky way: https://github.com/devcontainers/features/tree/main/src/desktop-lite and https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file.
this is the same thing, the dev container config just adds stuff to your docker image lol
Chiroyce
Scratcher
1000+ posts

Pygame in Github Codespaces!

bigspeedfpv wrote:

Mrcomputer1 wrote:

There is a non-hacky way: https://github.com/devcontainers/features/tree/main/src/desktop-lite and https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file.
this is the same thing, the dev container config just adds stuff to your docker image lol
yes but its a lot simpler + the docker image is a lot more lightweight i think (also doesnt come with a browser pre-installed)

Powered by DjangoBB