Skip to content


The Media block allows you to include images, GIFs, video and audio in your apps. If the file is in a supported format, it will be displayed inline in your app. 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 app for viewers and allow users to download them.

import datapane as dp

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