Textual – Logging to File and to Textual Console
When you are developing a user interface, it can be valuable to have a log of what’s going on. Creating a log in Textual, a text-based user interface, is even easier than creating one for wxPython or...
View ArticleTextual – An Intro to DOM Queries (Part I)
In this article, you will learn how to query the DOM in Textual. You will discover that the DOM keeps track of all the widgets in your application. By running queries against the DOM, you can find...
View ArticleVibe Coding Pong with Python and pygame
Pong is one of the first computer games ever created, way back in 1972. If you have never heard of Pong, you can think of it as a kind of “tennis” game. There are two paddles, on each side of the...
View ArticleThe Python Show – Python Illustrated
In this episode, we hear from two sisters who put together a beginner’s book about Python. The unique hook for their book is that one sister wrote the text while the other did the illustrations. Listen...
View ArticleTextual – Creating a Custom Checkbox
Textual is a great Python user interface package. Textual lets you create a GUI-like interface in your terminal. You can use many different widgets in Textual. However, the widget you will be focusing...
View ArticlePython Typing Book Kickstarter
Python has had type hinting support since Python 3.5, over TEN years ago! However, Python’s type annotations have changed repeatedly over the years. In Python Typing: Type Checking for Python...
View ArticleNew Book: Vibe Coding Video Games with Python
My latest book, Vibe Coding Video Games with Python, is now available as an eBook. The paperback will be coming soon, hopefully by mid-February at the latest. The book is around 183 pages in length and...
View ArticleHow to Type Hint a Decorator in Python
Decorators are a concept that can trip up new Python users. You may find this definition helpful: A decorator is a function that takes in another function and adds new functionality to it without...
View ArticleHow to Switch to ty from Mypy
Python has supported type hinting for quite a few versions now, starting way back in 3.5. However, Python itself does not enforce type checking. Instead, you need to use an external tool or IDE. The...
View ArticleANN: Vibe Coding Video Games with Python
I am happy to announce my latest book, Vibe Coding Video Games with Python. Here’s the announcement from my Kickstarter: Welcome to Vibe Coding Video Games with Python. In this book, you will learn how...
View ArticleBlack Friday Python Deals Came Early
Black Friday deals came early this year. You can get 50% off of any of my Python books or courses until the end of November. You can use this coupon code at checkout: BLACKISBACK...
View ArticleAn Intro to Python 3.14’s New Features
Python 3.14 came out this week and has many new features and improvements. For the full details behind the release, the documentation is the best source. However, you will find a quick overview of the...
View ArticleErys – A TUI for Jupyter Notebooks
Have you ever thought to yourself: “Wouldn’t it be nice to run Jupyter Notebooks in my terminal?” Well, you’re in luck. The new Erys project not only makes running Jupyter Notebooks in your terminal a...
View ArticleEp 55 – The Python Show Podcast – The Python Documentary with Paul Everitt
In this episode, we have special guest Paul Everitt on the show to discuss the new Python Documentary that was released last week. Paul is the head of developer advocacy at JetBrains and a “Python...
View ArticlePython 101: Reading TOML with Python
The TOML (Tom’s Obvious Minimal Language) format came out in 2013, so it’s been around for more than a decade. Python added support for TOML in Python 3.11 with its tomllib module in the standard...
View ArticlePython Quiz 1 – Exceptionally Crazy
The Python programming language allows you to catch exceptions using the try / except construct. But what happens if you nest exception handlers and throw in a break statement too? Your mission in...
View ArticlePyDev of the Week: Claudio Jolowicz
This week we welcome Claudio Jolowicz (@cjolowicz) as our PyDev of the Week! Claudio is the author of an upcoming book titled Hypermodern Python Tooling. Claudio writes about Python on Medium. You can...
View ArticleThe Python Papers Newsletter
I've been kicking around the idea of starting a Python newsletter for a couple of months now. I decided to bite the bullet and give it a try in 2023. My newsletter is called The Python Papers. I will...
View ArticlePyDev of the Week: Kevin McAleer
This week we welcome Kevin McAleer (@kevmac) as our PyDev of the Week! Kevin likes making robots, using Python, and sharing that passion on social media, such as YouTube. You can catch up with Kevin...
View ArticlePyDev of the Week: Joe Kaufeld
This week we welcome Joe Kaufeld as our PyDev of the Week! Joe has been a convention organizer for more than a decade and cofounded TranscribersOfReddit. Joe is active in the Python community and has...
View Article