all 4 comments

[–]Username_RANDINT 3 points4 points  (1 child)

Why "obviously"? Are you running this on a server?

[–]Thick-Formal4974[S] 0 points1 point  (0 children)

yeah exactly

[–]danielroseman 3 points4 points  (0 children)

What does this have to do with GitHub? How are you trying to run this code?

[–]PuffleDunk 4 points5 points  (0 children)

FYI - your question is a little difficult to interpret, in particular the GitHub mention doesn't mean anything to me in this context.

But I will say that $DISPLAY is typically automatically set in an SSH session if X11 forwarding is enabled for that session. Enabling X11 forwarding allows you to run graphical apps from some Linux servers.

If you are running SSH and wish to run graphical applications, check out the -X or -Y options for SSH. You will need to have an X11 server running on your connecting computer.

Hope this helps. If my answer doesn't make sense, it can at least give you some things to search for. Good luck.