Media

Use these functions to embed media in your outputs.

marimo.image

Render an image as HTML.

marimo.audio

Render an audio file as HTML.

marimo.video

Render an video as HTML.

marimo.pdf

Render a PDF.

marimo.download

Show a download button for a url, bytes, or file-like object.

marimo.plain_text

Text that’s fixed-width, with spaces and newlines preserved.

Most of these methods accept URLs (including data URLs), paths to local files, or file-like objects.