Slidev addons for embedding interactive Python (marimo) cells in your presentations.
All cells share state just like in a normal marimo notebook - variables defined in one cell are available in all others.
# Clone and run the example
git clone https://github.com/lucharo/slidev-marimo.git
cd slidev-marimo
npm install
npx slidev islands-example.md# npm
npm install @slidev/cli slidev-marimo-islands
# pnpm
pnpm add @slidev/cli slidev-marimo-islands
# bun
bun add @slidev/cli slidev-marimo-islands
# yarn
yarn add @slidev/cli slidev-marimo-islandsAdd to your slidev frontmatter:
---
addons:
- slidev-marimo-islands
---Then use marimo code blocks:
```marimo
import marimo as mo
slider = mo.ui.slider(0, 100)
slider
```Run your presentation:
npx slidev slides.mdFor detailed documentation, component props, and limitations, see the slidev-marimo-islands README.
MIT