Suppose I have a Python script, that I want to run by executing outside of the command line, just by double clicking it in the file explorer. When I double click a .py file now, a black command line box appears briefly and then disappears. What do I need to write in the file to enable this?
I'd be interested in the answer for both a Windows and Linux machine please!