How to get the executed Python code from code interpreter?

When I ask to draw a cricle, the playground displays the generated python code that gets executed to draw the circle.

When I use the API asking the same prompt, I get text and image messages but I don’t find where the python code is.
(not in annotations, not in attachment not in a sepcific type content)

Any idea?

Haven’t tried that, but it might be here: https://platform.openai.com/docs/assistants/tools/code-interpreter

good luck

thanks! that is the code I used but it says nothing about getting the python code, only how to get the result…