Skip to content

Commit 2491ef9

Browse files
authored
$DISPLAY not set bug
1 parent c050ec0 commit 2491ef9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demo/run_circos.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
import os
2323
import sys
2424
import pandas
25+
import matplotlib
26+
if not 'DISPLAY' in os.environ:
27+
matplotlib.use('Agg') # if DISPLAY is not set
2528
import pycircos
2629
import matplotlib.pyplot as plt
2730

0 commit comments

Comments
 (0)