
The LLM decides when to use Code Interpreter based on your message. To force or block it for one chat,
open the actions menu in the input bar and toggle Code Interpreter.
You can also add it as an action on a custom Agent.
Features
Code Interpreter runs in an isolated sandbox. The sandbox has no network access and cannot read files outside of its own workspace.- Libraries: Common data libraries such as numpy, pandas, scipy, and matplotlib are pre-installed. The Office libraries python-docx, python-pptx, and openpyxl are also pre-installed.
- File input: All files you attach to the chat are available to the code. Word, PowerPoint, Excel, and CSV files in a Project or in an Agent’s knowledge are also available. The code can edit an Office template from an Agent and return the changed copy. Limits on file count and total size apply to each code run. The model gets a notice if a file is not available.
- File output: The code can create files. Onyx returns them to you in the chat.
- Charts: The Chat UI renders charts and other visualizations in the conversation.