Real Python (@realpython) header
Real Python (@realpython) profile picture

Helping Python developers build with AI: apps, agents, models, and AI-assisted coding. Expert-reviewed tutorials and courses, read by 1M+ developers a month.

Joined August 2012
Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)Photo by Real Python (@realpython)
Win three years of Real Python, plus all four of our Python books. That's our Black Friday giveaway. Entering is free, you just need a free Real Python account. Entries close Friday, November 27. realpython.com/blackfriday?u…
1
2
1
9
2,495
Ask an LLM about your company's private docs and you get nothing useful. It never saw them. The Vector Databases and Embeddings With ChromaDB course shows how to store embeddings and hand the model the context it's missing. realpython.com/courses/vecto…
1
5
1,593
Know some Python and want to work with data? Load it → clean it → analyze it → chart what it means. Real Python takes you from your first DataFrame to confident analysis on real datasets. Get your free learning plan 👇 realpython.com/start/data-sc…
2
9
1,364
Want to call an LLM from Python and then hand it tools? This free starter kit has a cheat sheet, working code, a full video course, and a quiz to check yourself. realpython.com/kits/ai-apps-…
2
9
2,799
plt.plot(x, y, "o") draws the same scatter plot as plt.scatter(x, y), and it's typically several times faster. plt.scatter() earns the extra time when points differ: 1. Five variables, one chart 2. A hidden dot 3. Color from numbers 4. A Boolean mask 🧵
2
8
3,207
4. To style points by a condition, use a Boolean NumPy mask. The tutorial splits 40 simulated bus arrivals by whether each one falls under y, a probability curve: in_region = bus_likelihood < y[bus_times] Masked points become green dots, the rest red x markers.
1
459
Our Black Friday giveaway winner gets everything Real Python publishes over the next three years. That includes Mentor AI on every page and weekly live Office Hours. Free to enter. realpython.com/blackfriday?u…
5
1,510
You can read the full manifesto here: slopmanifesto.com Want to sign it? Leave a comment on this gist with your name, company, or X handle: gist.github.com/dexhorthy
1
445
Claude Code wrote a Python CLI and its tests. All passed. A fresh session still found a crash and a bad-data bug. What to check and set up when AI writes your Python: 1. A short CSV row 2. required=True and "" 3. A deleted __init__.py 4. Plan mode 5. One CLAUDE.md line 🧵
9
1
17
5,512
5. The prompt asking Claude Code for tests never named a framework. CLAUDE.md had one line: "Prefer the standard library." It's meant to steer Claude Code to unittest over pytest. If it tries to install pytest anyway, press Esc and redirect it.
1
413
Claude Code also flagged that two add commands running at once can interleave CSV rows. Single-user CLI: fix or ship? The tutorial has the fourth bug and both fixes. realpython.com/how-to-use-cl…
427