Skip to content

Commit

Permalink
don't override plotlyServerURL if one is set in iplot/plot (#1615)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
michaelbabyn authored and jonmmease committed Jun 15, 2019
1 parent 7cce283 commit dc11111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plotly/offline/offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def _get_jconfig(config):

plotly_platform_url = plotly.tools.get_config_plotly_server_url()

clean_config['plotlyServerURL'] = plotly_platform_url
if not clean_config.get('plotlyServerURL', None):
clean_config['plotlyServerURL'] = plotly_platform_url

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

0 comments on commit dc11111

Please sign in to comment.