Skip to content

Embeds

The Embed block lets you embed content from other platforms e.g. Youtube, Spotify. This is how you'd use it:

Info

If you're trying to embed an iframe, you can wrap it in an HTML block.

Text and HTML

Simple YouTube embed

import datapane as dp

report = dp.Report(
    dp.Embed(url='https://www.youtube.com/watch?v=_KS_yZBI71s&t')
)

report.save(path='embed-video.html')

You don't need to use this block for simple embeds on TextReports like GIFs. For those, just use Markdown syntax i.e. ![](https://my-example-gif.gif)