This issue is for making it possible to import functions directly from marimo notebooks:
from notebook import my_function
Only "pure" functions will be importable, ie functions that have no refs besides imported modules. Some care will need to be taken to handle modules.
A cell that includes a single function def, and nothing more, will be saved in the notebook file as:
@app.function
def my_function():
...
Discussed on:
This issue is for making it possible to import functions directly from marimo notebooks:
Only "pure" functions will be importable, ie functions that have no refs besides imported modules. Some care will need to be taken to handle modules.
A cell that includes a single function def, and nothing more, will be saved in the notebook file as:
Discussed on: