@@ -312,7 +312,7 @@ def get_figure(file_owner_or_url, file_id=None, raw=False):
312
312
`graph objects`.
313
313
314
314
"""
315
- plotly_rest_url = tools . get_config_file ()['plotly_domain' ]
315
+ plotly_rest_url = get_config ()['plotly_domain' ]
316
316
if file_id is None : # assume we're using a url
317
317
url = file_owner_or_url
318
318
if url [:len (plotly_rest_url )] != plotly_rest_url :
@@ -418,7 +418,7 @@ def open(self):
418
418
http://nbviewer.ipython.org/github/plotly/python-user-guide/blob/master/s7_streaming/s7_streaming.ipynb
419
419
"""
420
420
421
- streaming_url = tools . get_config_file ()['plotly_streaming_domain' ]
421
+ streaming_url = get_config ()['plotly_streaming_domain' ]
422
422
self ._stream = chunked_requests .Stream (streaming_url ,
423
423
80 ,
424
424
{'Host' : streaming_url ,
@@ -567,7 +567,7 @@ def get(figure_or_data, format='png', width=None, height=None):
567
567
if height is not None :
568
568
payload ['height' ] = height
569
569
570
- url = tools . get_config_file ()['plotly_domain' ] + "/apigenimage/"
570
+ url = get_config ()['plotly_domain' ] + "/apigenimage/"
571
571
res = requests .post (url ,
572
572
data = json .dumps (payload ,
573
573
cls = utils ._plotlyJSONEncoder ),
@@ -672,7 +672,7 @@ def _send_to_plotly(figure, **plot_options):
672
672
origin = 'plot' ,
673
673
kwargs = kwargs )
674
674
675
- url = tools . get_config_file ()['plotly_domain' ] + "/clientresp"
675
+ url = get_config ()['plotly_domain' ] + "/clientresp"
676
676
677
677
r = requests .post (url , data = payload )
678
678
r .raise_for_status ()
0 commit comments