i want to link a local HTML file to a plotly dash table.
from dash import Dash
from dash_table import DataTable
import pandas as pd
df = pd.DataFrame(
{
"Links": [
"<a href='https://www.yahoo.com/' target='_blank'>test</a>",
"<a href='../folder/file.html' target='_blank'>local html File</a>",
]
}
)
app = Dash(__name__)
app.layout = DataTable(
id="table",
data=df.to_dict("records"),
columns=[
{"id": "Links", "name": "Job", "presentation": "markdown"},
],
markdown_options={"html": True},
)
if __name__ == "__main__":
app.run_server()
I expect to open a local HTML file with a link out of the datatable