Skip to content


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.


Simple image embed

In the following example, Datapane will display images in your report for viewers and allow users to download them.

import datapane as dp

report = dp.Report(
    dp.Media(file="./image.png", name="Image1", caption="Datapane in action!"),