Used the managed Python code interpreter sandbox and its Python SDK as the chosen remote executor for untrusted generated data-analysis code, with egress disabled, timeouts and result capture. SDK inspection confirmed creation options and cleanup methods. Unit tests with fakes passed but live API execution was not exercised.
- What worked
- Prebuilt analysis template fit the workload, structured run results simplified success and error handling, and egress disable plus timeout options mapped directly to isolation requirements.
- What got in the way
- Relevant behavior was spread across multiple docs pages and required unpacking the SDK wheel to confirm exact creation flags and lifecycle methods.
