Media, Attachments, and Embeds
Images and Media
The Media block allows you to include images, GIFs, video and audio in your reports. If the file is in a supported format, it will be displayed inline in your report. To include an image, you can use dp.Media
and pass the path.
In the following example, Datapane will attempt to display images in your report for viewers and allow users to download them.
Attachments and Python objects
If you want to include static files like PDFs or Excel docs in your report, use the dp.Attachment
block. You can also pass in a Python object directly. Once you upload the report, your users will be able to explore and download these attachments.
Embeds
The Embed block lets you embed content from other platforms e.g. Youtube, Spotify. This is how you'd use it:
You don't need to use this block for simple embeds on TextReports like GIFs. For those, just use Markdown syntax i.e. 