Have you thought the standard output from Matplotlib is a bit generic looking? Would you like a quick way to add style and consistency to your data visualizations? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects.
We cover an article about the magic of creating style sheets for Matplotlib. You can quickly customize plots and graphs with a single line of code. We share additional resources for you to try out new styles and learn what parameters are customizable.
Christopher covers an article about using async for web development in Python. The creation of Python generators inspired the development of async functionality. He discusses recent changes and async additions within Python web frameworks.
We cover several other articles and projects from the Python community, including how to install a pre-release version of Python, cache in Python with lru_cache, and get better at debugging, along with suggestions of libraries that deserve attention, a Python library for creating mathematical animations, and an extremely fast Python linter that’s written in Rust.
Course Spotlight: Python Debugging With pdb
In this hands-on course, you’ll learn the basics of using pdb, Python’s interactive source code debugger. pdb is a great tool for tracking down hard-to-find bugs, and it allows you to fix faulty code more quickly.
00:00:00 – Introduction00:02:21 – Python releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now available00:03:51 – How Can You Install a Pre-Release Version of Python?00:08:13 – Understanding async Python for the Web00:17:11 – The Magic of Matplotlib Style Sheets00:24:20 – Sponsor: Platform.sh00:24:56 – Caching in Python With lru_cache00:29:41 – Some Ways to Get Better at Debugging00:38:14 – Video Course Spotlight00:39:26 – Suggest a Lesser Known Library Deserving Attention00:44:52 – ruff: An Extremely Fast Python Linter, Written in Rust00:48:19 – Manim: Python Library for Creating Mathematical Animations00:51:50 – Thanks and goodbyePython releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now availableHow Can You Install a Pre-Release Version of Python? – If you want to have a peek at what’s coming in the next stable version of Python, then you can install a pre-release version. In this tutorial, you’ll learn how to access the latest Python versions and help test them.Understanding async Python for the Web – “Recently Django 4.1 was released, and the thing most people seem interested in is the expanded async support. The Python web ecosystem has been seeing new frameworks pop up which are fully async, or support going fully async, from the start.” Learn more about async and its use in web frameworks.The Magic of Matplotlib Stylesheets – With a single line of code, you can integrate a style sheet with your Matplotlib visualization. In this tutorial, you’ll learn how to make your very own custom reusable style sheet.Caching in Python With lru_cache – Caching is an essential optimization technique. In this video course, you’ll learn how to use Python’s @lru_cache decorator to cache the results of your functions using the LRU cache strategy. This is a powerful technique you can use to leverage the power of caching in your implementations.Some Ways to Get Better at Debugging – This is a short summary of a couple of academic papers on how to improve your debugging skills. The suggestions are to learn the codebase, learn the system, learn your tools, learn strategies, and gain experience.Suggest a Lesser Known Library Deserving Attentionruff: An Extremely Fast Python Linter, Written in RustManim: Python Library for Creating Mathematical AnimationsManaging Multiple Python Versions With pyenv – Real PythonYour Python Coding Environment on Windows: Setup Guide – Real PythonCustomizing Matplotlib with style sheets and rcParams — Matplotlib 3.5.3 documentationdhaitz/matplotlib-stylesheets: Stylesheets for MatplotlibKaggle: Your Home for Data Sciencewizard zinesRubber Duck Debugging – Debugging software with a rubber duckypudb · PyPIHumre · PyPIWelcome to Nox — Nox 2022.8.7 documentationEpisode #21: Exploring K-means Clustering and Building a Gradebook With Pandas – The Real Python Podcast3Blue1Brown - YouTubeLevel up your Python skills with our expert-led courses:
Python Basics: Finding and Fixing Code BugsPython Plotting With MatplotlibDebugging in Python With pdb Support the podcast & join our community of Pythonistas