I recently developed a simple dashboard that lists all the files sitting on an internal http web page.
At the moment the dashboard generates a dataframe listing each file with a link behind it. The user can then link on the file they want and it downloads on their machine
I dockerised the dash app and deployed it on our local linux server. I tested it on a few colleagues machines who were all using Chrome and it worked it fine.
I then sent it out to the client who are using Internet Explorer 11. So the dashboard and the dataframe is generated. When they click on the file name, nothing happens. I had a further look at it and it appears there are no urls behind the file names.
I’m using the code below to generate a HTML table based on a dataframe that contains the file names. I then add the url behind each of the file name.
def generate_table(dataframe): #generate a dash dataframe based on a pandas dataframe
max_rows = dataframe.shape
[html.Tr([html.Th(col) for col in dataframe.columns])] +
# Body [html.Tr(html.A([html.Td(dataframe.iloc[i][col]) for col in dataframe.columns], href=link + dataframe.iloc[i])) #add a link to each file name for i in range(min(len(dataframe), max_rows))] )
Is there something I need to include in my script to make it compatible?