The Real Python Podcast

Create Interactive Maps & Geospatial Data Visualizations With Python


Listen Later

Would you like to quickly add data to a map with Python? Have you wanted to create beautiful interactive maps and export them as a stand-alone static web page? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects.

We share a recent Real Python tutorial about using Python Folium to create geospatial data visualizations. Folium harnesses the power of the JavaScript library Leaflet. The project shares how to combine this graphical power with Python’s data-wrangling strength.

Christopher shares a recent Python Enhancement Proposal (PEP) about the Global Interpreter Lock (GIL) in CPython. The PEP proposes a change to the build process that implements a flag for optionally building a GIL-less interpreter.

We share several other articles and projects from the Python community, including a news update, a YAML document from hell, a set of logging practices to follow, a discussion about the discourse surrounding the recent Python packaging user survey, a modern Python UI library based on Tkinter, and a lightweight tool kit for bounding boxes.

Course Spotlight: Everyday Project Packaging With pyproject.toml

In this Code Conversation video course, you’ll learn how to package your everyday projects with pyproject.toml. Playing on the same team as the import system means you can call your project from anywhere, ensure consistent imports, and have one file that’ll work for many build systems.

Topics:

  • 00:00:00 – Introduction
  • 00:02:33 – Bleach 6.0.0 release and deprecation
  • 00:05:03 – Python Folium: Create Web Maps From Your Data
  • 00:10:37 – PEP 703: Making the GIL Optional in CPython
  • 00:15:36 – Sponsor: Influxdata
  • 00:16:24 – The YAML Document From Hell
  • 00:27:53 – Logging Practices I Follow
  • 00:32:08 – How to improve Python packaging
  • 00:36:55 – Video Course Spotlight
  • 00:38:25 – Thoughts on the Python packaging ecosystem
  • 00:58:16 – CustomTkinter: Python UI library Based on Tkinter
  • 01:00:16 – pybboxes: Lightweight Tool Kit for Bounding Boxes
  • 01:01:36 – Thanks and goodbye
  • News:

    • Bleach 6.0.0 release and deprecation - Will’s Blog
    • Show Links:

      • Python Folium: Create Web Maps From Your Data – You’ll learn how to create web maps from data using Folium. The package combines Python’s data-wrangling strengths with the data-visualization power of the JavaScript library Leaflet. In this tutorial, you’ll create and style a choropleth world map that shows the ecological footprint per country.
      • PEP 703: Making the GIL Optional in CPython – This PEP proposes changes to the CPython build process that would allow you to build a GIL-less interpreter. This kind of interpreter would not be ABI compatible with the GIL-based one, and the programmer would become responsible for some locking situations in C-extensions. If implemented, this would lead the way to being able to operate without the GIL in cases where backward-compatibility issues aren’t important.
      • The yaml Document From Hell – As a data format, YAML is extremely complicated and it has many footguns. In this post, Ruud explains some of those pitfalls by means of an example and suggests a few simpler and safer YAML alternatives.
      • Logging Practices I Follow – “No matter what kind of software you’re developing, you most definitely leverage logging to some extent, probably every single day.” This article outlines good cross-language logging practices, making it easier to find bugs and understand what has happened in your software.
      • Discussion:

        • How to improve Python packaging, or why fourteen tools are at least twelve too many - Chris Warrick
        • Thoughts on the Python packaging ecosystem - Pradyun Gedam
        • Python Packaging User Survey - Results PDF
        • Python Packaging Strategy Discussion - Part 1 - Packaging - Discussions on Python.org
        • Thoughts on the Python packaging ecosystem | Hacker News
        • Stargirl: “So You Want to Solve Python Packaging” - Fosstodon
        • xkcd: Standards
        • Projects:

          • CustomTkinter: Python UI Library Based on Tkinter
          • pybboxes: Lightweight Tool Kit for Bounding Boxes
          • Additional Links:

            • PEP 554 – Multiple Interpreters in the Stdlib - peps.python.org
            • YAML: The Missing Battery in Python – Real Python
            • Python and TOML: New Best Friends – Real Python
            • PEP 665 – A file format to list Python dependencies for reproducibility of an application - peps.python.org
            • tkinter — Python interface to Tcl/Tk — Python 3.11.1 docs
            • Python GUI Programming With Tkinter – Real Python
            • Level up your Python skills with our expert-led courses:

              • Logging Inside Python
              • Everyday Project Packaging With pyproject.toml
              • Graph Your Data With Python and ggplot
              • 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