I tried this:
<code>app_ui = ui.page_fluid(
ui.output_text("the_txt")
)
def server(input, output, session):
@render.text
def the_txt():
url = 'https://stackoverflow.com'
clickable_url = f'<a> href="{url}" target="_blank">Click here</a>'
return ui.HTML(clickable_url)
</code>
<code>app_ui = ui.page_fluid(
ui.output_text("the_txt")
)
def server(input, output, session):
@render.text
def the_txt():
url = 'https://stackoverflow.com'
clickable_url = f'<a> href="{url}" target="_blank">Click here</a>'
return ui.HTML(clickable_url)
</code>
app_ui = ui.page_fluid(
ui.output_text("the_txt")
)
def server(input, output, session):
@render.text
def the_txt():
url = 'https://stackoverflow.com'
clickable_url = f'<a> href="{url}" target="_blank">Click here</a>'
return ui.HTML(clickable_url)
But the displayed text is the raw HTML: <a> href="https://stackoverflow.com" target="_blank">Click here</a>
How do I display a clickable link in a Shiny for Python app ?