TL;DR
For a notebook-style analyst that returns plots, start with E2B. For analysis that shares datasets with an existing Modal pipeline, start with Modal. For an agent that edits workspace files between short Python runs, start with floo.
- Ask what must survive the gap between a chart and the user's follow-up.
- Run one small CSV through both turns and verify the arithmetic.
- Measure cost per correct report, including the time between turns.
Choose around the second question
A user uploads September and October sales and asks which customers explain the drop. The agent returns a chart. Five minutes later the user asks for monthly totals. That second turn exposes the important difference between preserving an uploaded file, resuming a live Python interpreter, and sharing a dataset across jobs.
We build floo. We ran the two-turn CSV tutorial on floo. For E2B and Modal, the recommendations below use their published interfaces, checked November 26, 2026. We have no cross-provider timing or cost result for this workload.
| If your analyst needs… | Start with | Verify in your own trial |
|---|---|---|
| Python cells and plot outputs returned to a chat UI | E2B Code Interpreter | Render the chart in your frontend and resume a variable after a pause. |
| A dataset shared with jobs you already run on Modal | Modal Sandbox and a Volume | Confirm a second job sees the committed file version it needs. |
| Ordinary file reads and edits between short Python commands | floo hybrid sandbox | Read the upload after compute goes idle, run Python again, and inspect billing. |
E2B for a notebook-style analyst
E2B's data-analysis guide shows the workflow end to end: upload a CSV, run generated Python in its Code Interpreter, and save the chart returned by the execution. That is a good fit when a tool result in your chat interface needs to carry a plot. E2B also documents a pause that preserves memory and files, useful when the next cell needs a transformed dataframe still in memory. For an interpreter used by your own application, follow E2B's instructions to restrict public traffic. Data-analysis example · Sandbox persistence
Modal for analysis alongside an existing data pipeline
A Modal Sandbox can execute a Python program in an image you define. A named Volume gives the sandbox and other Modal workloads a shared filesystem. This fits a pipeline where a scheduled job prepares a dataset and a user later asks an agent to analyze that version. Give the producer and reader separate runs in your trial. Check the commit and reload behavior across those two mounts before relying on a newly written partition. Modal Sandboxes · Modal Volumes
floo for short computations over a reusable workspace
In our CSV run, the host uploaded six rows, the agent wrote Python, and the sandbox ran it. A second Python script read the same file. The result was a $500 decline for North, a $50 decline for East, and a $150 gain for West. The second calculation put the overall decline at $400. The host rendered the chart from those numbers.
On floo, ordinary workspace file calls can run while the VM is off. Python starts a machine. The default warm window keeps it attached for 30 seconds after a command, and workspace storage has its own rate. An ordinary VM stop keeps files and installed packages while discarding process memory. If your follow-up depends on an in-memory dataframe, save it to a file or evaluate persistent sandbox mode. Run the CSV tutorial · Measured lifecycle and billing
Run the same acceptance test before choosing
- Use the six-row fixture in the CSV agent source. Fix the model-generated analysis script across providers when comparing infrastructure. Otherwise a slower model answer can look like a slower sandbox.
- Upload once, compute the three changes, and retrieve a chart. Record the elapsed time from upload to a chart a user can open.
- Leave five minutes between questions. Request totals using the original upload. Check for $2,500 in September and $2,100 in October. If your product promises notebook continuity, also read a variable from the first turn.
- Record the sandbox size, warm or pause policy, billed compute, storage, and model charges separately. Repeat cold and warm runs. Count a report as successful only if both the artifact and the follow-up are correct.
A file-backed analyst, a stateful notebook, and a pipeline worker can return the same first chart. The follow-up tells you which one you bought.