GPT-4 now provides a friendly little tool that has the potential to completely change the coding industry. Again.
You can activate the code interpreter in your ChatGPT Settings:
Toggle the “Code Interpreter” option (currently in “Beta features” but not for long):
Now you can run the code interpreter using a simple natural language prompt such as
"Create a histogram of points drawn from a random distribution in Python and visualize the result".
Here’s an example run in my ChatGPT environment:
Yay you can now run Python code and plot scripts in your ChatGPT environment!
If you click on the “Show work” button above, it toggles the code that was executed:
A simple feature but powerful — using ChatGPT has now become even more convincing for coders like you and me.
Also make sure to check out our prompting tricks:
👩💻 Recommended: Best 35 Helpful ChatGPT Prompts for Coders (2023)
While working as a researcher in distributed systems, Dr. Christian Mayer found his love for teaching computer science students.
To help students reach higher levels of Python success, he founded the programming education website Finxter.com that has taught exponential skills to millions of coders worldwide. He’s the author of the best-selling programming books Python One-Liners (NoStarch 2020), The Art of Clean Code (NoStarch 2022), and The Book of Dash (NoStarch 2022). Chris also coauthored the Coffee Break Python series of self-published books. He’s a computer science enthusiast, freelancer, and owner of one of the top 10 largest Python blogs worldwide.
His passions are writing, reading, and coding. But his greatest passion is to serve aspiring coders through Finxter and help them to boost their skills. You can join his free email academy here.