We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44bea32 commit acc9c74Copy full SHA for acc9c74
1 file changed
template/utils/_config.py
@@ -91,4 +91,16 @@ def _list_dependencies_info(
91
version_ = version(dep)
92
except Exception:
93
version_ = "Not found."
94
- out(f"{dep}:".ljust(ljust) + version_ + "\n")
+
95
+ # handle special dependencies with backends, C dep, ..
96
+ if dep in ("matplotlib", "seaborn") and version_ != "Not found.":
97
+ try:
98
+ from matplotlib import pyplot as plt
99
+ backend = plt.get_backend()
100
+ except Exception:
101
+ backend = "Not found"
102
103
+ out(f"{dep}:".ljust(ljust) + version_ + f" (backend: {backend})\n")
104
105
+ else:
106
+ out(f"{dep}:".ljust(ljust) + version_ + "\n")
0 commit comments