How does this interact with your code editor or IDE? When you edit the file, where does the editor look for information about the imported third-party libraries?
import os
print(os.environ['VIRTUAL_ENV'] + '/bin/python')
Then, e.g. in VS Code, you bring up the command palette, run Python: Select Interpreter, and enter the result. uv python find --script foo.py
— https://github.com/astral-sh/uv/releases/tag/0.6.10— https://docs.astral.sh/uv/reference/cli/#uv-python-find--scr...