run_code
Execute ad-hoc Python in a Colab runtime through a temporary cell that is deleted after use, returning plots as images; optionally keep the cell or run in background.
Instructions
Run ad-hoc Python in the notebook's runtime via a temporary cell at the end.
The cell is deleted afterwards unless keep_cell=True. Images in the output (plots) are returned as image content. background=True returns a job id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| keep_cell | No | ||
| background | No | ||
| max_output_chars | No |