Code Interpreter

Warning

Heads up. This is a legacy feature, still available in the Chat tab. It works just like before, no rush. See Get started with Work for the entry point.

Vibe Work has a built-in TypeScript code environment that covers most data-processing and graphing use cases (cleaning data, generating charts, transforming files). Pick Work when TypeScript fits the task; pick Chat with Code Interpreter when you specifically need Python or a Python-only library.

Code Interpreter stays around for now. No deprecation date set — we'll keep you posted.

Code Interpreter lets you run Python directly inside Vibe.

Not a developer? No problem. Describe what you want in plain language, and Vibe generates and executes the code for you.

i
Information

Code runs in a secure, isolated environment with no internet access. It cannot reach your system or external services. Common data-analysis packages are preinstalled (pandas, numpy, matplotlib). Uploaded files are available for the current conversation only.

Common use cases

Common use cases

Code Interpreter combines the versatility of Vibe with the precision of Python. It's perfect for:

  • Data analysis: explore CSV, XLSX, or JSON files. Summarize, filter, flag outliers, or clean missing values.
  • Charts and visuals: generate line charts, bar charts, pie charts, or any Matplotlib visualization from your data.
  • Calculations: work through formulas, financial models, or unit conversions with verified accuracy.
  • File transformations: convert formats, merge datasets, or export processed results as downloadable files.
Activation

Activation

Code Interpreter must be enabled before Vibe can use it.

  1. Select the Chat tab in the sidebar.
  2. Click the + icon or type / in the chat window.
  3. Select Tools then enable Code Interpreter.

The tool stays active for the duration of the conversation and subsequent chats.

Note

Code Interpreter usage is subject to rate limits based on your plan. For details, visit our pricing page.

Running code

Running code

Describe what you want in plain language and Vibe writes and executes the Python code for you.

Load this CSV and show the top 5 rows, then plot sales by month.

The code runs in the sandbox and returns tables, figures, or files inline. You can follow up to refine results, adjust filters, or ask for explanations of what the code does.

i
Information

Code Interpreter cannot fetch files directly from URLs. If your data is online, download it locally and upload the file. Alternatively, enable Web search and ask Vibe to fetch the data before running code.

Working with files

Working with files

Upload files using the + button in the chat toolbar. Supported formats include:

  • Documents: PDF, Word (.docx, .doc), PowerPoint (.pptx, .ppt), ODT, EPUB, RTF
  • Spreadsheets: Excel (.xlsx, .xls), CSV, ODS, Numbers
  • Images: PNG, JPEG, WebP, GIF
  • Text and markup: TXT, Markdown, RST, LaTeX
  • Data formats: JSON, JSONL, XML, YAML
  • Code files: Python, JavaScript/TypeScript, Java, Go, Rust, C/C++, Ruby, PHP, SQL, and many more
  • Email: EML, MSG

Typical prompts:

  • "Summarize this spreadsheet and flag outliers."
  • "Clean this CSV, fix missing values, and export a new file."
  • "Extract all emails from this PDF and give me a CSV."
Note
Tips for better results

Tips for better results

  • Be specific. For charts or tables, specify column names, filters, and the desired output format.
  • Ask for explanations. Try "Explain the steps and show the code" to understand what's happening.
  • Iterate. Follow up with requests to fine-tune the output (e.g., "Now add a rolling average and label the axes.")
  • Prototype with smaller files. If you hit a limit, upload a sample to test your approach, then scale up.
  • Avoid sharing secrets. Never share API keys or credentials in the chat or in code.
  • Files and Canvas: edit and refine code, data, and text, and import documents, spreadsheets, and images into your conversation.