AIChatGPT

Jul 2023 - The ChatGPT Code Interpreter Plugin

By Johannes Hayer
Picture of the author
Published on

What is the ChatGPT Code Interpreter Plugin, and what can you do with it?

Openai announced (Jul 2023) a new plugin for ChatGPT, known as Code Interpreter Plugin, which enables you to execute Python code in a live working environment. This plugin, powered by the GPT-4 model, provides a sandboxed Python environment where you can perform various tasks using Python code. Although it may seem tailored for coders, it also offers assistance to general users for a wide range of tasks.**

Code Interpreter in ChatGPT has the ability to convert a PDF file using OCR, trim a video file, change its format, solve mathematical problems, perform data analysis and visualization, create graphs, charts, and much more. With Code Interpreter, you can directly upload local files to ChatGPT in various formats.

It supports many file formats, including popular ones like TXT, PDF, DOC, DOCX, JPEG, PNG, MP4, AVI, CSV, JSON, XML, XLS, XLSX, CPP, PY, HTML, PDF, DB, SQLite, and more.

Who Can Access Code Interpreter Plugin in ChatGPT?

Code Interpreter Plugin not available on the free version of ChatGPT. You need to subscribe to ChatGPT Plus (costs $20 per month) and switch to the GPT-4 model in order to use it. Starting this week, OpenAI is bringing Code Interpreter to all ChatGPT plus users so you’re likely to get it in a few days.

How to activate the Code Interpreter in ChatGPT?

To access the ChatGPT Code Interpreter, go to ChatGPT and click on the settings option located at the bottom left corner.

  1. Open ChatGPT settings.
  2. Open Beta features.
  3. Enable Code Interpreter.

OpenAI has recently announced that the Code Interpreter will be available to all ChatGPT Plus subscribers within the next week. This means that by becoming a Plus subscriber, you gain access to the Code Interpreter.

The Code Interpreter allows ChatGPT to execute code, including the option to access files that you have uploaded. You can utilize this feature to analyze data, create charts, edit files, perform mathematical operations, and more.

Summary

  • OpenAI has released the ChatGPT code interpreter allowing the language model to write, execute, and test its own code.
  • The interpreter struggles with writing valid regular expressions but iteratively tests and improves its code until it succeeds.
  • Currently, the code interpreter can only run Python code and has limited dependencies, but future versions may support other languages and environments like JavaScript and GitHub Copilot.
  • The interpreter can now upload files (limit 100MB), such as .csv, .xls, .png, .jpeg, .mov, .mp3, .epub, .pdf, and .zip files, for various tasks like OCR, data cleaning, analysis, and visualization.
  • The sandbox comes preinstalled with more than 330 libraries, including popular ones like pandas for data analysis, matplotlib and seaborn for charting, folium for maps, pytesseract for OCR, Pillow for image processing, Pymovie for ffmpeg, Scikit-Learn, and PyTorch and Tensorflow for machine learning tasks
  • The interpreter has potential applications in data analysis, saving time for tasks like data cleaning, analyzing, and generating new CSV files. It can also visualize data and provide trading strategies with financial data. However, it failed to create an operating system, highlighting the continued superiority of human programmers in certain areas.

If you found this content helpful ⇢

Stay Tuned

Subscribe for development and indie hacking tips!