Attempting to connect Dash app with third party api

Any idea how to convert the html example below into something more Dash-friendly? (The script tags are written as words because this page converts tags to html, and you wouldn’t be able to see the contents otherwise.)

< script src="" data-app-id="abcd" >

< / script >

1 Like

I thought that maybe something like this work…

src=' data-app-id=“abcd” ',

or something like this could work…


…but no luck.

The more I look into this, the more it looks like I need to add a data-* attribute, which it looks like Dash supports. Does anyone have experience using the data-* attribute with the html.Script element?

I haven’t tested this, but you could try something like:

html.Script(src='', **{'data-app-id': 'abcd'})
1 Like

Thanks Benn0, I came to the same conclusion and tried that last night actually, but it didn’t work :frowning:

Bump I am also curious about solving this one. Thanks!