@app.callback(dash.dependencies.Output('my-datatable', 'children'), [dash.dependencies.Input('my-dropdown', 'value')])
def update_rows(selected_value):
    output_arr = []
    for (doc_no, topic) in enumerate(topic_sequence[selected_value]):
        if ((doc_no != 0) and (topic == selected_value)):
            continue
        else:
            topic = int(topic)
            test_str = ((((((adf.iloc[topic]['title'] + '. ') + adf.iloc[topic]['author']) + ' ') + adf.iloc[topic]['link']) + ' ') + adf.iloc[topic]['source'])
            output_arr.append(html.H3(topic_list[int(topic)]))
            output_arr.append(html.P(test_str))
    return output_arr
@app.callback(dash.dependencies.Output('my-datatable', 'children'), [dash.dependencies.Input('my-dropdown', 'value')])
def update_rows(selected_value):
    output_arr = []
    for (doc_no, topic) in enumerate(topic_sequence[selected_value]):
        if ((doc_no != 0) and (topic == selected_value)):
            continue
        else:
            topic = int(topic)
            test_str = ((((((adf.iloc[topic]['title'] + '. ') + adf.iloc[topic]['author']) + ' ') + adf.iloc[topic]['link']) + ' ') + adf.iloc[topic]['source'])
            output_arr.append(html.H3(topic_list[int(topic)]))
            output_arr.append(html.P(test_str))
    return output_arr