Skip to content

Commit dc11111

Browse files
michaelbabynjonmmease
authored andcommitted
don't override plotlyServerURL if one is set in iplot/plot (#1615)
* only set plotlyServerURL using the plotly_domain in the .config file if one isn't specified in the config dict passed to iplot/plot * make it clear that the default in clean_config.get is None
1 parent 7cce283 commit dc11111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/offline/offline.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def _get_jconfig(config):
161161

162162
plotly_platform_url = plotly.tools.get_config_plotly_server_url()
163163

164-
clean_config['plotlyServerURL'] = plotly_platform_url
164+
if not clean_config.get('plotlyServerURL', None):
165+
clean_config['plotlyServerURL'] = plotly_platform_url
165166

166167
if (plotly_platform_url != 'https://plot.ly' and
167168
clean_config.get('linkText', None) == 'Export to plot.ly'):

0 commit comments

Comments
 (0)