diff --git a/detail_daemon_node.py b/detail_daemon_node.py index 551261c..07c7cdd 100644 --- a/detail_daemon_node.py +++ b/detail_daemon_node.py @@ -4,6 +4,13 @@ from __future__ import annotations import io +# Trying matplotlib NSWindow warning workaround on macOS +import platform + +if platform.system() == 'Darwin': # Check if running on macOS + import matplotlib + matplotlib.use('Agg') # Set non-GUI backend to avoid crashes + import matplotlib.pyplot as plt import numpy as np import torch