Get help from the marimo community

Updated 4 weeks ago

Reference cell output?

Is there a way I can reference a cell's output? E.g.

Plain Text
@app.Cell
def _():
   print('hi')

@app.Cell
def _():
   return mo.cells[0].output
M
R
2 comments
not from within the notebook, from one cell to another. i would assign it to a variable and then use that same variable
will try that, thank you πŸ™‚
Add a reply
Sign up and join the conversation on Discord