External dependencies

External dependencies

By default, quarto-marimo creates a sandboxed Python environment with uv. To add a package for one document, declare it in the document frontmatter under pyproject.

---
pyproject: |
  requires-python = ">=3.11"
  dependencies = [
    "marimo>=0.23.1",
    "wigglystuff",
  ]
---

After that, you can import the package normally inside marimo cells. If the package exposes an anywidget, wrap it with mo.ui.anywidget so marimo can keep the UI reactive in Quarto output.

Example: wigglystuff.Slider2D

Back to top