How do i add a hyperlink in python

How do i add hyperlink in python

I want to create a a hyperlink in python that automaticly open without the user having to click on it

Does anyone have any ideas

Just to clarify you want the program to automatically open a new tab with a link?

1 Like

@Ethan yes that is what i want the program to do

Hi @PrestonCurtis1 can you share a link to your Repl with the work in progress? You’d have to have imported a browser library to do this. Remember that it would only do this within your Repl and not open a tab on the user’s computer.

2 Likes

ok here is the link

Thanks @PrestonCurtis1

I took a look at the code. From what I can see you are attempting to open a browser tab on the user’s local computer. This isn’t possible from a Repl (for security reasons at the very least).

I downloaded the repl as a zip and ran the code on my local computer. It works as expected, opening a new tab in Chrome browser and navigating to the python docs url.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.