marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
5.31k stars 155 forks source link

feat: app comp #1665

Closed akshayka closed 1 week ago

akshayka commented 1 week ago

Embed notebooks in other notebooks.

This change makes it possible to embed a notebook as an output in another notebook. The embedded notebook is rendered as a vstack of its non-None outputs, and is reactive with respect to UI element value updates.

This lets you make a more complex notebook out of smaller building-block notebooks.

Enhancements left for the future:

  1. Multiple levels of composition. Right now, reactivity wrt to UI elements only allows for 1 level of nesting.
  2. API for passing references to the app, or for otherwise injecting/overriding args into the embedded app.

image

image

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 9:12pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 9:12pm