N receives the JSON-safe state committed by cell N-1; it never receives definitions from future cells. Bulk rows travel through Streams rather than being copied between Worker responses.
Install the Python component builder
The CLI orchestrates the published Python Worker builder, so install it in the environment where you deploy:Download the Iris notebook
Use the repository’s completeiris-streaming.ipynb, or create an nbformat-4 notebook with these cells:
IRIS_RAW and IRIS_RESULTS Stream bindings.
Cells append to Streams with producer identities derived from the cell and run
IDs. Repeating a run ID is therefore an idempotent trigger retry; choosing a new
run ID is an explicit rerun. A Pipeline connected to IRIS_RESULTS owns any
downstream Sink writes.
Deploy
Authenticate, then deploy all code cells into one runtime process group:.verglas/notebooks/iris-streaming/. The command prints the independently addressable endpoint for every cell.
Trigger cells
Run the pending notebook suffix in order:Notebook magics and Durable Object sources
The generated Python Worker recognizes two line magics:%do supports GET, POST, PUT, PATCH, and DELETE. Add using payload
before as response to send a JSON value as the request body. A service binding
can carry object and origin routing metadata, while a Durable Object namespace
resolves the object name with id_from_name.
The repository’s DO streaming notebook
reads /samples from the existing sensor-source object station-42, then sends
the returned records to the sensor-raw Stream. Deploy and trigger it with the
same commands:
