Как встраивать в Da sh Python? - PullRequest
0 голосов
/ 09 апреля 2020

Я хочу добавить новостную статью в мое приложение Da sh. Ниже мой код:

import dash
import dash_design_kit
import dash_html_components as html
import dash_core_components as dcc

app = dash.Dash()


app.layout = html.Embed('''<blockquote class="embedly-card"><h4><a href="https://www.euronews.com/2020/04/08/staff-is-down-to-the-bone-italian-doctors-and-nurses-share-experiences-of-the-covid-19-fr">'Staff is down to the bone': Italian healthcare workers on COVID-19</a></h4><p>In Italy, Europe's hardest-hit country in the coronavirus crisis, medical staff is struggling to cope with the coronavirus pandemic. Among the medical staff who are fighting COVID-19 are also young professionals who have started working during the outbreak of the epidemic. Young doctors and nurses talked to Euronews about their experiences of the frontlines.</p></blockquote>
<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>''')

if __name__ == "__main__":
    app.run_server(debug=True,port=8001)

Но всякий раз, когда я запускаю приложение, я получаю следующую ошибку:

enter image description here

...