From 6d748ee4b7e7eb75bc985db4f48651ed8e81e057 Mon Sep 17 00:00:00 2001 From: Guilherme Zagatti Date: Thu, 2 Jan 2025 20:57:49 +0100 Subject: [PATCH] fix matplotlib under layout_uv --- direnv/direnvrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direnv/direnvrc b/direnv/direnvrc index fb62360..e21c9f0 100644 --- a/direnv/direnvrc +++ b/direnv/direnvrc @@ -18,6 +18,9 @@ layout_uv() { source "$VIRTUAL_ENV/bin/activate" PATH_add "$VIRTUAL_ENV/bin" export UV_ACTIVE=1 + # see https://github.com/astral-sh/uv/issues/6893 + # see https://github.com/astral-sh/uv/issues/7036 + export MPLBACKEND=Agg else echo -e "\e[38:5:1mUV virtual environment not available.\e[0m" fi