4

My python program outputs a set of url links. When I run this on pycharm, I can directly click on the links and that will open them up in the browser. However, when I run the python file by double clicking on the .py file, the links are not clickable. I want the links to be clickable so it takes me to the browser directly. Please support solutions with explanations as I am still learning. Thanks!

4
  • 9
    This is an issue of the terminal, not of Python. Evidently PyCharm's terminal supports clickable URLs but your system terminal doesn't. Commented May 4, 2015 at 9:40
  • 3
    Please give more information about your operating system and terminal and it is possible to suggest a solution Commented May 4, 2015 at 10:42
  • Is it possible to add links to iTerm2 on MacOS X? Commented Apr 4, 2016 at 14:52
  • Maybe you have better luck with stripping http:// or https:// from the URL. CTRL + click will open the link in some terminals. Commented Apr 28, 2019 at 15:39

1 Answer 1

1

As outlined above, you need to use a terminal that supports clicking of URL's.

On linux, most terminals do this. Ex Gnome-terminal, terminator etc.. On Mac, try iterm2.

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.