@@ -71,13 +71,6 @@ def __init__(self, fig):
71
71
print ('=' * 70 )
72
72
print (e .output )
73
73
print ('=' * 70 )
74
- if 'DISPLAY' not in os .environ :
75
- cmd = ['curl' , '-sT' , tikz_file , 'chunk.io' ]
76
- out = subprocess .check_output (
77
- cmd ,
78
- stderr = subprocess .STDOUT
79
- )
80
- print ('Uploaded TikZ file to %s' % out .decode ('utf-8' ))
81
74
raise
82
75
83
76
pdf_file = tmp_base + '.pdf'
@@ -121,35 +114,6 @@ def get_details(self):
121
114
122
115
print ('pdftoppm output:' )
123
116
print (self .ptp_out .decode ('utf-8' ))
124
-
125
- if 'DISPLAY' not in os .environ :
126
- # upload to chunk.io if we're on a headless client
127
- out = subprocess .check_output (
128
- ['curl' , '-sT' , self .mpl_reference , 'chunk.io' ],
129
- stderr = subprocess .STDOUT
130
- )
131
- print (
132
- 'Uploaded reference matplotlib PDF file to %s' %
133
- out .decode ('utf-8' )
134
- )
135
-
136
- out = subprocess .check_output (
137
- ['curl' , '-sT' , self .tikz_file , 'chunk.io' ],
138
- stderr = subprocess .STDOUT
139
- )
140
- print ('Uploaded TikZ file to %s' % out .decode ('utf-8' ))
141
-
142
- out = subprocess .check_output (
143
- ['curl' , '-sT' , self .pdf_file , 'chunk.io' ],
144
- stderr = subprocess .STDOUT
145
- )
146
- print ('Uploaded output PDF file to %s' % out .decode ('utf-8' ))
147
-
148
- out = subprocess .check_output (
149
- ['curl' , '-sT' , self .png_file , 'chunk.io' ],
150
- stderr = subprocess .STDOUT
151
- )
152
- print ('Uploaded output PNG file to %s' % out .decode ('utf-8' ))
153
117
return
154
118
155
119
0 commit comments