ChatGPT Code Interpreter: What Is It and How It Works?
OpenAI has finally added Code Interpreter to ChatGPT, the most anticipated feature that opens the door for so many possibilities. AfterChatGPT Plugins, people have been waiting for Code Interpreter, which is now out of Alpha and released in Beta to ChatGPT Plus users. But what exactly is ChatGPT Code Interpreter and how does it work? To learn in detail, read on.
What is Code Interpreter in ChatGPT?
Code Interpreter is the latest feature in OpenAIChatGPT(specifically, with the GPT-4 model) that allows you to run Python code in a live working environment. It’s basically asandboxed Python environmentwhere you can execute Python code to perform any task you like. It may sound like a feature built for coders, but it can also help general users with many tasks.
For example, you can ask Code Interpreter in ChatGPT to convert a PDF file using OCR, trim a video file or change the format, solve a mathematical problem,perform data analysisand visualization,create graphs, charts, and much more. As a result, Code Interpreter allows you to directlyupload local files to ChatGPTin multiple formats.
Code Interpretergives a temporary disk spaceas well to upload your files. It supports a wide variety of file formats including popular ones such as TXT, PDF, DOC, DOCX, JPEG, PNG, MP4, AVI, CSV, JSON, XML, XLS, XLSX, CPP, PY, HTML, PDF, DB, SQLite, and much more. This is not an exhaustive list and a popular representation of file formats across various categories. You can check out the complete list in the tweet below.ChatGPT Code Interpreter can access over 300 python packages.Here’s the complete list — with a short description of each generated by ChatGPTpic.twitter.com/tSza0EXJGj— Gavriel Cohen (@Gavriel_Cohen)July 9, 2023
ChatGPT Code Interpreter can access over 300 python packages.Here’s the complete list — with a short description of each generated by ChatGPTpic.twitter.com/tSza0EXJGj— Gavriel Cohen (@Gavriel_Cohen)July 9, 2023
In simple terms, with Code Interpreter in ChatGPT, you get access to a computer right inside the chatbot with compute resources and disk space. You can do just about anything you want through natural language. That said, bear in mind that you can’t install Python libraries on your own. It’s a sandboxed, firewalled environment that comespreinstalled with 300+ libraries and packages.
How Does Code Interpreter Work in ChatGPT?
As mentioned above, Code Interpreter runs Python code to perform a task in the ChatGPT interface. So, for example, if you ask it to make an image-based PDF searchable using OCR, itcreates a custom Python scripton the fly and executes it then and there. You just need to upload your PDF file, and it will do everything in the backend. You can check all the libraries it’s using, where it’s getting stuck, etc.
OpenAI has not mentioned thefile size limitationfor Code Interpreter. Many have suggested that it can handle files below 100MB, but we uploaded a 170MB PDF file and it worked fine. You can try it on your own and check how well it processes big files. That said, uploaded files are discarded after your exit from the chat session.
Who Can Access Code Interpreter in ChatGPT?
Code Interpreter is not available on the free version of ChatGPT. You need to subscribe toChatGPT 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 paying users so you’re likely to get it in a few days. You can follow our tutorial onhow to use Code Interpreter in ChatGPTfor detailed steps.
Arjun Sha
Passionate about Windows, ChromeOS, Android, security and privacy issues. Have a penchant to solve everyday computing problems.
Add new comment
Name
Email ID
Δ
01
02
03
04
05