Skip to main content
The code-interpreter template runs a Jupyter kernel inside the machine: variables persist between calls, packages install at runtime, and rich results like plots come back as data.

Setup

Python

interpreter_example.py

Expected output

If a call fails inside the kernel, the returned result carries the error instead of raising: check result.error for the exception name, value, and traceback. Related: Code Interpreter overview · SDK guide · Charts