Skip to main content
Code Interpreter
Updated today

The Code Interpreter capability allows users to execute and interpret Python code directly within the chat interface.

How to access

  • Usage Limits: Code interpreter is subject to daily usage limits in le Chat Free. For higher use of the code interpreter, you can upgrade to le Chat Pro.

  • Enable Code interpreter: The Code Interpreter is enabled by default, so users do not need to activate it manually.

How to use

  • When the chat interface generates Python code, it executes the scripts in a secure, controlled environment.

  • You can request le Chat to generate Python code directly in the prompt or upload a CSV file and have it visualize data and generate insights.

  • Please note that the code is running in a sandbox environment without internet access. As a result, you cannot directly read a CSV file from a URL in Python. Instead, you will need to upload the CSV file manually.

Use cases

  • Simple calculation and plotting

  • Data analysis and visualization

  • Mathematical & scientific computing

Example demo

Did this answer your question?