Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's super cumbersome so I can't really recommend it for work.

I invoke the "Select Interpreter" action. A file selector opens, then I go to the user cache directory (e.g. ~/.cache on Linux, something like %LOCALAPPDATA%\Cache on Windows). It has a `uv` subdirectory, then I drill further down until I find the directory where uv keeps its venvs. Find the venv that corresponds to your script, then go to its `bin` subdirectory and select the Python executable.

The upside is that you only have to do this once per script.

The downside is that you have to do this once per script.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: