When running pygame in Ubuntu a terminal is opened along with the pygame window. I want to get rid of the terminal. I can launch pygame with
$ nohup python3 mygame.py &
This allows the terminal to be closed, but it does not prevent it from being opened in the first place.
Is there a way to run pygame without a terminal being opened?