Skip to content

plotlyServerURL config option overridden by plotly_domain from ~/.plotly/.config #1609

Closed
@michaelbabyn

Description

@michaelbabyn

Setting plotlyServerURL in the config dict passed to iplot will always create a plot where the "Edit in Chart Studio" button sends the plot to the base url defined by plotly_domain.

This code won't change the plotly url used by the "Edit in Chart Studio" button

import plotly.offline as py
import plotly.graph_objs as go
py.init_notebook_mode()

py.iplot([go.Scatter(y=[2,3,4])], config=dict(showSendToCloud = True, plotlyServerURL='https://myserver.com'))

and this code will

import plotly.offline as py
import plotly.graph_objs as go
import plotly.tools as tls
py.init_notebook_mode()

tls.set_config_file(plotly_domain='https://www.myserver.com')
py.iplot([go.Scatter(y=[2,3,4])], config=dict(showSendToCloud = True))

I think it would be good to add a check to see if plotlyServerURL is already present in the config dict before setting it to plotly_domain (relevant code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions