Skip to content

Showing multiple outputs

See the API reference on outputs for more info.

Source code for examples/outputs/showing_multiple_outputs.py

Tip: paste this code into an empty cell, and the marimo editor will create cells for you

import marimo

__generated_with = "0.15.5"
app = marimo.App()


@app.cell
def _():
    import marimo as mo
    return (mo,)


@app.cell
def _(mo):
    for i in range(3):
        mo.output.append(mo.md(f"$i = {i}$"))

    mo.output.append(mo.md("Completed iteration."))
    return


if __name__ == "__main__":
    app.run()