@@ -55,7 +55,8 @@ def warning_on_one_line(message, category, filename, lineno, file=None, line=Non
55
55
CONFIG_FILE : {'plotly_domain' : 'https://plot.ly' ,
56
56
'plotly_streaming_domain' : 'stream.plot.ly' ,
57
57
'plotly_api_domain' : 'https://api.plot.ly' ,
58
- 'plotly_ssl_verification' : True }}
58
+ 'plotly_ssl_verification' : True ,
59
+ 'plotly_proxy_authorization' : False }}
59
60
60
61
try :
61
62
os .mkdir (TEST_DIR )
@@ -153,7 +154,8 @@ def reset_credentials_file():
153
154
def set_config_file (plotly_domain = None ,
154
155
plotly_streaming_domain = None ,
155
156
plotly_api_domain = None ,
156
- plotly_ssl_verification = None ):
157
+ plotly_ssl_verification = None ,
158
+ plotly_proxy_authorization = None ):
157
159
"""Set the keyword-value pairs in `~/.plotly/.config`.
158
160
159
161
"""
@@ -170,6 +172,8 @@ def set_config_file(plotly_domain=None,
170
172
settings ['plotly_api_domain' ] = plotly_api_domain
171
173
if isinstance (plotly_ssl_verification , (six .string_types , bool )):
172
174
settings ['plotly_ssl_verification' ] = plotly_ssl_verification
175
+ if isinstance (plotly_proxy_authorization , (six .string_types , bool )):
176
+ settings ['plotly_proxy_authorization' ] = plotly_proxy_authorization
173
177
utils .save_json_dict (CONFIG_FILE , settings )
174
178
ensure_local_plotly_files () # make sure what we just put there is OK
175
179
0 commit comments