Skip to content

Remove plot.ly URL in exported HTML if user didn't enable link or sendToCloud #1628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

jonmmease
Copy link
Contributor

Small update to HTML export logic inspired by question in #1602. The HTML generated by plotly.offline.plot/plotly.io.write_html is fully offline (no way to share data with cloud servers) by default. But even though the buttons/links to share data are disabled by default, the https://plot.ly URL was still included in the exported HTML.

For peace of mind, this PR only includes the Chart Studio base URL (e.g. https://plot.ly) if the user overrides the defaults to turn on the showLink or sendToCloud config options.

@jonmmease jonmmease merged commit 7b6fad9 into v4_integration Jun 19, 2019
@nicolaskruchten nicolaskruchten deleted the v4_remove_plot_ly_url_when_not_needed branch June 19, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant