Hacker News with Generative AI: Virtual Environments

Kate and Python Language Server (akselmo.dev)
As much as I love Kate editor, as I mentioned in my previous post, setting up Python language server has always been a bit fiddly if you want it to work with virtual environments.
Aider: Using Uv as an Installer (simonwillison.net)
Aider: Using uv as an installer. Paul Gauthier has an innovative solution for the challenge of helping end users get a copy of his Aider CLI Python utility installed in an isolated virtual environment without first needing to teach them what an "isolated virtual environment" is.
PEP 486 – Make the Python Launcher aware of virtual environments (2015) (python.org)
The Windows installers for Python include a launcher that locates the correct Python interpreter to run (see PEP 397). However, the launcher is not aware of virtual environments (virtualenv [1] or PEP 405 based), and so cannot be used to run commands from the active virtualenv.
Pex: A tool for generating .pex (Python EXecutable) files, lock files and venvs (github.com/pex-tool)
pex is a library for generating .pex (Python EXecutable) files which are executable Python environments in the spirit of virtualenvs.
Venvstacks: Virtual Environment Stacks for Python (lmstudio.ai)
Use layered Python virtual environment stacks to share large dependencies