0

I'm having trouble figuring out how to run a python file and have the output appear in a new window.

I'm using Linux, and I can have it run perfectly fine from within the terminal, but I need to be able to run it from the file manager.

When I double click the file, all it does is open a text editor.

I've alteredthe permissions to allow the file to be executed, but double clicking still just opens the text editor.

How can I get the file to open a new window and show its' output there?

Edit: typos

2
  • 1
    make sure python file starts with a shebang line like this #!/usr/bin/env python if not exist add it yourself and try again Commented May 20, 2020 at 5:38
  • Possible duplicate stackoverflow.com/questions/13933169/… Commented May 20, 2020 at 5:38

1 Answer 1

0

You need to change the programm assosiate with .py files. e.g. to associate .py codes with the terminal. This is all different in different distribution (or better Desktop Manager). Try this other post

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.