The Real Python Podcast

Improve Matplotlib With Style Sheets & Python Async for the Web


Listen Later

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.

Topics:

  • 00:00:00 – Introduction
  • 00:02:21 – Python releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now available
  • 00:03:51 – How Can You Install a Pre-Release Version of Python?
  • 00:08:13 – Understanding async Python for the Web
  • 00:17:11 – The Magic of Matplotlib Style Sheets
  • 00:24:20 – Sponsor: Platform.sh
  • 00:24:56 – Caching in Python With lru_cache
  • 00:29:41 – Some Ways to Get Better at Debugging
  • 00:38:14 – Video Course Spotlight
  • 00:39:26 – Suggest a Lesser Known Library Deserving Attention
  • 00:44:52 – ruff: An Extremely Fast Python Linter, Written in Rust
  • 00:48:19 – Manim: Python Library for Creating Mathematical Animations
  • 00:51:50 – Thanks and goodbye
  • Show Links:

    • Python releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now available
    • How 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.
    • Discussions:

      • Suggest a Lesser Known Library Deserving Attention
      • Projects:

        • ruff: An Extremely Fast Python Linter, Written in Rust
        • Manim: Python Library for Creating Mathematical Animations
        • Additional Links:

          • Managing Multiple Python Versions With pyenv – Real Python
          • Your Python Coding Environment on Windows: Setup Guide – Real Python
          • Customizing Matplotlib with style sheets and rcParams — Matplotlib 3.5.3 documentation
          • dhaitz/matplotlib-stylesheets: Stylesheets for Matplotlib
          • Kaggle: Your Home for Data Science
          • wizard zines
          • Rubber Duck Debugging – Debugging software with a rubber ducky
          • pudb · PyPI
          • Humre · PyPI
          • Welcome to Nox — Nox 2022.8.7 documentation
          • Episode #21: Exploring K-means Clustering and Building a Gradebook With Pandas – The Real Python Podcast
          • 3Blue1Brown - YouTube
          • Level up your Python skills with our expert-led courses:

            • Python Basics: Finding and Fixing Code Bugs
            • Python Plotting With Matplotlib
            • Debugging in Python With pdb
            • Support the podcast & join our community of Pythonistas

              ...more
              View all episodesView all episodes
              Download on the App Store

              The Real Python PodcastBy Real Python

              • 4.7
              • 4.7
              • 4.7
              • 4.7
              • 4.7

              4.7

              136 ratings


              More shows like The Real Python Podcast

              View all
              Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

              Software Engineering Radio - the podcast for professional software developers

              272 Listeners

              The Changelog: Software Development, Open Source by Changelog Media

              The Changelog: Software Development, Open Source

              283 Listeners

              Thoughtworks Technology Podcast by Thoughtworks

              Thoughtworks Technology Podcast

              41 Listeners

              Talk Python To Me by Michael Kennedy

              Talk Python To Me

              592 Listeners

              Software Engineering Daily by Software Engineering Daily

              Software Engineering Daily

              625 Listeners

              Soft Skills Engineering by Jamison Dance and Dave Smith

              Soft Skills Engineering

              269 Listeners

              Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

              Super Data Science: ML & AI Podcast with Jon Krohn

              296 Listeners

              Python Bytes by Michael Kennedy and Brian Okken

              Python Bytes

              213 Listeners

              Data Engineering Podcast by Tobias Macey

              Data Engineering Podcast

              142 Listeners

              Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

              Syntax - Tasty Web Development Treats

              983 Listeners

              DataFramed by DataCamp

              DataFramed

              266 Listeners

              Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

              Kubernetes Podcast from Google

              181 Listeners

              Practical AI by Practical AI LLC

              Practical AI

              189 Listeners

              The Stack Overflow Podcast by The Stack Overflow Podcast

              The Stack Overflow Podcast

              64 Listeners

              The Pragmatic Engineer by Gergely Orosz

              The Pragmatic Engineer

              52 Listeners