A user ran into this issue with cell diagnostics.
Sharing a repro in case it's useful:
- Positron with a project that has a .venv containing dependencies not installed in the system/global Python (e.g., polars).
- System Python on PATH = Homebrew (here [email protected]), without polars.
- Open a .qmd with a cell that does
import polars.
What I see: Pyrefly flags "Cannot find module 'polars'" and appears to resolve against the global Python rather than the project .venv.
python.defaultInterpreterPath, the interpreter picker, and QUARTO_PYTHON didn't change it.
Positron's own Pyrefly resolves the .venv fine, seems specific to the cell-diagnostics path.
Downgrading to 1.132.0 fixes it.
A user ran into this issue with cell diagnostics.