Skip to content

Commit df02ccd

Browse files
committed
Switch over how plotly.py gets config info to use get_config.
1 parent 6b23446 commit df02ccd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plotly/plotly/plotly.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def get_figure(file_owner_or_url, file_id=None, raw=False):
312312
`graph objects`.
313313
314314
"""
315-
plotly_rest_url = tools.get_config_file()['plotly_domain']
315+
plotly_rest_url = get_config()['plotly_domain']
316316
if file_id is None: # assume we're using a url
317317
url = file_owner_or_url
318318
if url[:len(plotly_rest_url)] != plotly_rest_url:
@@ -418,7 +418,7 @@ def open(self):
418418
http://nbviewer.ipython.org/github/plotly/python-user-guide/blob/master/s7_streaming/s7_streaming.ipynb
419419
"""
420420

421-
streaming_url = tools.get_config_file()['plotly_streaming_domain']
421+
streaming_url = get_config()['plotly_streaming_domain']
422422
self._stream = chunked_requests.Stream(streaming_url,
423423
80,
424424
{'Host': streaming_url,
@@ -567,7 +567,7 @@ def get(figure_or_data, format='png', width=None, height=None):
567567
if height is not None:
568568
payload['height'] = height
569569

570-
url = tools.get_config_file()['plotly_domain'] + "/apigenimage/"
570+
url = get_config()['plotly_domain'] + "/apigenimage/"
571571
res = requests.post(url,
572572
data=json.dumps(payload,
573573
cls=utils._plotlyJSONEncoder),
@@ -672,7 +672,7 @@ def _send_to_plotly(figure, **plot_options):
672672
origin='plot',
673673
kwargs=kwargs)
674674

675-
url = tools.get_config_file()['plotly_domain'] + "/clientresp"
675+
url = get_config()['plotly_domain'] + "/clientresp"
676676

677677
r = requests.post(url, data=payload)
678678
r.raise_for_status()

0 commit comments

Comments
 (0)