We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui.output_data_frame
I would like to include a clickable link in the cell of ui.output_data_frame. I have tried a few iterations but cannot find anything that works.
import pandas as pd from shiny import App, render, ui app_ui = ui.page_fluid( ui.output_data_frame("data_output") ) def server(input, output, session): # Load the data data = pd.DataFrame({ "id": [1, 2, 3], "url": ['https://google.com', 'https://duckduckgo.com', 'https://bing.com'] }) @output @render.data_frame def data_output(): df = data.copy() return df app = App(app_ui, server)
ui.a
@output @render.data_frame def data_output(): df = data.copy() df['url'] = df['url'].apply(lambda x: ui.a(x)) return df
@output @render.data_frame def data_output(): df = data.copy() df['url'] = df['url'].apply(lambda x: f'<a href"{x}">click me</a>') return df
The text was updated successfully, but these errors were encountered:
Apologies, I created this in the wrong repo. I have reposted in the correct repo here: posit-dev/py-shiny#930
Sorry, something went wrong.
No branches or pull requests
I would like to include a clickable link in the cell of
ui.output_data_frame
. I have tried a few iterations but cannot find anything that works.ui.a
The text was updated successfully, but these errors were encountered: