Python Bytes

#425 If You Were a Klingon Programmer


Listen Later

Topics covered in this episode:
  • Why aren't you using uv?
  • Python Developer Tooling Handbook
  • Calling all doc writers: blacken-docs
  • Reinventing notebooks as reusable Python programs
  • Extras
  • Joke
  • Watch on YouTube

    About the show

    Brought to you by Posit Connect: pythonbytes.fm/connect.

    Connect with the hosts

    • Michael: @[email protected] / @mkennedy.codes (bsky)
    • Brian: @[email protected] / @brianokken.bsky.social
    • Show: @[email protected] / @pythonbytes.fm (bsky)
    • Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

      Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

      Michael #1: Why aren't you using uv?

      • Fun conversation on X by Armin Ronacher.
      • Interesting quotes from the thread
        • I get it replaces pip/pyenv, but should I also use it instead of the built in 'python -m venv .venv'?
        • But I need python installed to make python programs?
        • Because it places the venv in the project folder and I can't run executables from there due to corporate policy. Many such cases. No idea why astral doesn't address this with more urgency.
          • Sounds like a bad corporate policy :)
          • i’m too lazy to switch from pyenv and pip
          • trust issues, what if they do a bait and switch …
          • Because everyone said that about poetry and I'm not sure I'm really ready to get hurt again.
          • Masochism
          • Many times I tried a lot of similar tools and always come back to pip and pip-tools. Them are just work, why should I spend my time for something "cool" that will bring more problems?
          • I tried this week but I was expecting a "uv install requests" instead of "uv add". Switched back to pipenv.
          • we partially use it. will transition when Dependabot support is available.
          • I’ll leave it with → Jared Scheel: Seeing a whole lotta Stockholm Syndrome in the replies to this question.
          • Brian #2: Python Developer Tooling Handbook

            • Tim Hopper
            • “This is not a book about programming Python. Instead, the goal of this book is to help you understand the ecosystem of tools used to make Python development easier and more productive”
            • Covers tools related to packaging, linting, formatting, and managing dependencies.
            • Michael #3: Calling all doc writers: blacken-docs

              • Run black on python code blocks in documentation files
              • You can also install blacken-docs as a pre-commit hook.
              • It supports Markdown, reStructuredText, and LaTex files.
              • Additionally, you can run it on Python files to reformat Markdown and reStructuredText within docstrings.
              • Brian #4: Reinventing notebooks as reusable Python programs

                • marimo allows you to store notebooks as plaintext Python files
                • properties
                  • Git-friendly: small code change => small diff
                  • easy for both humans and computers to read
                  • importable as a Python module, without executing notebook cells
                  • executable as a Python script
                  • editable with a text editor
                  • Also, … testing with pytest
                  • “Because marimo notebooks are just Python files, they are interoperable with other tools for Python — including pytest. “
                  • Testing cells. Any cell named as test_* is automatically discoverable and testable by pytest. The same goes for any cell that contains only test_ functions and Test classes.”
                  • “Importantly, because cells are wrapped in functions, running pytest test_notebook.py doesn’t execute the entire notebook — just its tests.”
                  • Extras

                    Brian:

                    • PyConUS announces Refund Policy for International Attendees
                    • New format now live for The Complete pytest Course Bundle and component courses
                      • Each course now available separately also
                        • pytest Primary Power is 13 lessons, 3.9 hours
                        • Using pytest with Projects, 10 lessons, 3.4 hours
                        • pytest Booster Rockets, 6 lessons, 1.3 hours of content
                        • New format is easier to navigate
                        • Better for people who like different speeds. I’m usually a 1.25x-1.5x speed person.
                        • Now also with Congratulations! lessons (with fireworks) and printable certificates.
                        • Michael:

                          • PyCon Taiwan is currently calling for proposals
                          • HN trends follow up via Shinjitsu
                          • I'm sure some other Hacker News reader has already given you the feedback, but in the unlikely case that they haven't, You read those headlines in this segment exactly wrong.

                            “Ask HN: Who is hiring?" is a monthly post that asks employers to post

                            about jobs they have available

                            “Ask HN: Who wants to be hired?” is a monthly topic where they ask

                            people who are looking for jobs to post about themselves in the hope
                            that their skillset it is a good match (and not an LLM generated resume)

                            So unfortunately your rosy analysis might need a less rosy

                            interpretation.

                            Joke:

                            • Top 12 things likely to be overheard if you had a Klingon Programmer
                              • From Holgi on Mastodon
                              • ...more
                                View all episodesView all episodes
                                Download on the App Store

                                Python BytesBy Michael Kennedy and Brian Okken

                                • 4.7
                                • 4.7
                                • 4.7
                                • 4.7
                                • 4.7

                                4.7

                                210 ratings


                                More shows like Python Bytes

                                View all
                                Hanselminutes with Scott Hanselman by Scott Hanselman

                                Hanselminutes with Scott Hanselman

                                378 Listeners

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

                                Software Engineering Radio - the podcast for professional software developers

                                262 Listeners

                                The Changelog: Software Development, Open Source by Changelog Media

                                The Changelog: Software Development, Open Source

                                285 Listeners

                                Data Skeptic by Kyle Polich

                                Data Skeptic

                                474 Listeners

                                Talk Python To Me by Michael Kennedy

                                Talk Python To Me

                                585 Listeners

                                Software Engineering Daily by Software Engineering Daily

                                Software Engineering Daily

                                631 Listeners

                                Test & Code by Brian Okken

                                Test & Code

                                72 Listeners

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

                                Super Data Science: ML & AI Podcast with Jon Krohn

                                295 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

                                985 Listeners

                                CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

                                CoRecursive: Coding Stories

                                185 Listeners

                                Practical AI by Practical AI LLC

                                Practical AI

                                195 Listeners

                                The Stack Overflow Podcast by The Stack Overflow Podcast

                                The Stack Overflow Podcast

                                63 Listeners

                                The Real Python Podcast by Real Python

                                The Real Python Podcast

                                137 Listeners

                                Oxide and Friends by Oxide Computer Company

                                Oxide and Friends

                                47 Listeners