« Back to Glossary Index


On July 6, OpenAI made ChatGPT’s code interpreter function available to all ChatGPT Plus users. The Code interpreter is an in-house plug-in with which ChatGPT can run code to analyze data, solve math problems, create charts, edit files, and similar tasks. It functions using a Python interpreter in a sandboxed, firewalled execution environment in a persistent session the length of the chat conversation, OpenAI said in their blog post.

An example below where an OCR action is taken:


You can use the interpretor to perform various tasks, such as data analysis, visualization, coding, math, and more. The code interpreter is really useful because it can help you:

  • Learn and practice Python in a conversational and interactive way. You can ask ChatGPT to explain the code, give examples, or debug errors.
  • Access external APIs and services using Python requests or other libraries. You can use ChatGPT to convert natural language to API calls, or extract structured data from text.
  • Create charts, maps, and other visualizations using Python libraries like matplotlib, seaborn, or plotly. You can upload data files to ChatGPT and ask it to generate plots based on your specifications.
  • Work with math and science problems using Python libraries like numpy, scipy, or sympy. You can ask ChatGPT to solve equations, perform calculations, or simplify expressions.

To use the code interpreter plugin, you need to have a ChatGPT Plus subscription and activate the plugin in the chat settings. You can then write code in the chat using the #code prefix, or ask ChatGPT to write code for you using natural language. You can also upload or download files to or from ChatGPT using the #upload and #download commands.

« Back to Glossary Index