Skip to content
Sign upLog in
← Back to Community
Is there a difference when using python on replit or normal python?
Profile icon
MartinStavland

So is there a difference when you run a python script on replit than on normal Python.

I would love som help!

Voters
Profile icon
hussainraza8
Profile icon
MartinStavland
Comments
hotnewtop
Profile icon
hyperupcall

hey!

yeah, the biggest difference is that graphical user interfaces (GUIs) will not necessarily work out of the box as they would if you ran a python script locally.

as you can see in the image below, you would have to create a "Pygame" or Pyxel" etc. repl. This is required to see the graphical output of the program.

image

furthermore, you are given less compute power when your python files are being ran. naturally, this is required since it would be near impossible to give every replit user a powerful, desktop-level performance for each repl.

lastly, you may not have access to all the flags passed to the python interpreter when pressing the "run" button. (if you want the terminal emulator to appear, you can press press f1, then type shell, or press ctrl+shift+p). however, you can open up the terminal emulator and manually invoke python commands, if you wish.

some of these differences may be been obvious, but i pointed them out anyways :)
hope i helped

Profile icon
MartinStavland

@eankeen
okay, thank you (:

Profile icon
theangryepicbanana

There is no difference, unless you're trying to get the user's IP or make a gui application

Profile icon
MartinStavland