Dive into the evolving landscape of Python tooling as the discussion reveals the advantages of using uv over traditional methods. Unpack the complexities of Python package management and the newly launched Python Developer Tooling Handbook. Discover the latest in linting tools and the innovative Blacken Docs for documentation enhancement. The conversation also explores reinventing notebooks for better functionality in Python programming. Plus, indulge in some humorous takes on Klingon programmers that will keep you chuckling!
37:55
forum Ask episode
web_stories AI Snips
view_agenda Chapters
auto_awesome Transcript
info_circle Episode notes
volunteer_activism ADVICE
Virtual Environment Management
Use UV for virtual environments, even without Python installed.
It sets up Python and manages versions quickly.
question_answer ANECDOTE
Pythonless Setup
Michael hasn't installed Python on two new computers.
He uses UV to manage virtual environments, avoiding manual Python installations.
volunteer_activism ADVICE
Virtual Environment Placement
Configure UV to place virtual environments outside project folders if needed.
An environment variable overrides the default location within the project.
Get the Snipd Podcast app to discover more snips from this episode
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.
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.
“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.
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.”
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.