AI summaryThe article introduces Altair, a declarative Python visualization library where users describe what their data means—such as which columns map to axes, colors, and interactivity—and the library generates the chart, unlike Matplotlib's approach of scripting every visual detail. Altair produces web-native charts (HTML and JavaScript) that render in notebooks and can be saved as standalone files or embedded in web pages, making it ideal for interactive exploratory analysis. It's not a replacement for Matplotlib, which remains the better choice for pixel-precise publication figures or 3D plots, so the two libraries serve complementary use cases.
AI summaryReal Python's informal AI benchmark asked the Step 5 model to write a turtle program drawing a python reading a book, but the 253-line script failed with an AttributeError and produced zero drawing commands. Across the five tasks, the model scored at Python 3.10 for modernity, passed 7 of 12 modern idiom checkpoints, correctly caught the nonexistent itertools.flatten() function, and made 1 of 10 possible unrelated edits. The full run cost $0.15, used about 49.4k thinking tokens, and took roughly 6 minutes 44 seconds.
In this quiz, you’ll test your understanding of the video course Using Python for Data Analysis. By working through this quiz, you’ll revisit the stages of a data analysis workflow, how to fix missing values, wrong data types, out-of-range
Say you’ve inherited a project with no tests or so few that you can’t refactor it safely. Generating Python tests with AI seems like the quick way out, but a one-line prompt often gives you a suite that passes without catching real bugs. Th
In this quiz, you’ll test your understanding of Generating Python Tests With AI: A Suite You Can Trust. By working through this quiz, you’ll revisit how standing testing conventions guide an AI coding agent, why you review behavior tables b
In this quiz, you’ll test your understanding of What Are Python Wheels and Why Should You Care?. By working through this quiz, you’ll revisit how wheels compare to source distributions, how to read wheel filename tags, how to tell pip which
In this quiz, you’ll test your understanding of What Are Python Asterisk and Slash Special Parameters For?. By working through this quiz, you’ll revisit how the bare asterisk and the slash split a function’s parameters into positional-only,
Real Python AI News · Weekly edition · The week of November 21–27, 2026 Stop Falling Behind on AI. Catch Up in Five Minutes. New models, new prices, new agent tools, all the time. Our new AI newsletter gives you the handful of stories you a
In this quiz, you’ll test your understanding of Python Timer Functions: Three Ways to Monitor Your Code. By working through this quiz, you’ll revisit why time.perf_counter() is the go-to clock for timing code and how to wrap a timer in a cl
What goes into moving from profiling the performance of a Python program to optimizing it? What are common techniques you should consider for speeding up your code, and which ones should you avoid? Christopher Trudeau is back on the show th
In this quiz, you’ll test your understanding of Python and TOML: Read, Write, and Configure with tomllib. By working through this quiz, you’ll revisit TOML syntax, including key-value pairs, tables, arrays, and dates. You’ll also practice l
One of the jobs that all teachers have in common is evaluating students. Whether you use exams, homework assignments, quizzes, or projects, you usually have to turn students’ scores into a letter grade at the end of the term. This often inv
The No AI Slop Manifesto is a short statement from the speakers and attendees of the AIE Code Summit 2026. It defines AI slop and commits everyone who signs it to owning the work they ship with AI. Here, you’ll find out what it says, why it
You change the system prompt behind an LLM feature, try a few examples, and think you’ve fixed the bug. The new outputs look better when you inspect them manually, so you deploy the change. All is well. That is, until you discover that a se
In this quiz, you’ll test your understanding of The No AI Slop Manifesto: A Pledge to Own What Agents Ship. By working through this quiz, you’ll revisit how the manifesto defines slop, why producing work got cheaper than reviewing it, and w
In this quiz, you’ll test your understanding of LLM Evaluation in Python: Build an Eval Harness From Scratch. By working through this quiz, you’ll revisit how to turn product expectations into explicit criteria, when to use code checks inst
You know how LLMs work, and you may already use AI agents to help you write code. However, an agent isn’t an LLM, and an LLM isn’t an agent. What sits between them is the agentic loop. In this video course, you’ll build an AI agent from scr
From the previous tutorials in this series, you now have quite a bit of Python code under your belt. Everything you have seen so far has consisted of sequential execution, in which statements are always performed one after the next, in exac
The k-means clustering method is an unsupervised machine learning technique used to identify clusters of data objects in a dataset. There are many different types of clustering methods, but k-means is one of the oldest and most approachable
Test your understanding of Python conditional statements. Take this quiz after reading our Conditional Statements in Python tutorial. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox ev