Skip to content
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

Update config options and disable show_link by default #1377

Merged
merged 8 commits into from
Dec 27, 2018
Merged

Conversation

jonmmease
Copy link
Contributor

This PR closes #1290 and #1304.

  1. The list of known config options was updated to include 'responsive', 'showSendToCloud', and 'watermark'.
  2. From here on, config options that are not known by plotly.py result in a warning but are still passed along to plotly.js. Prior to this PR these unknown options were dropped silently. This way, if plotly.py falls behind plotly.js in the future, it will still be possible to pass unknown options to plotly.js (they will just result in a warning).
  3. The show_link option has been set to False by default in the offline plot and iplot functions. Now that the "send data to cloud" button has been disabled by default in plotly.js 1.43.0, no buttons/links will be displayed by default that result in data being sent off of the local machine.

raise a warning for options that are not known by plotly.py to be valid

Previously we would silently drop unrecognized options.  This change
was done so that if plotly.py falls behind plotly.js in the future,
the user still has a way to specify all config options supported by
plotly.js
Along with the change to set `showSendToCloud` to False by default in
plotly.js 1.43.0, now the default behavior of plotly.py/plotly.js is
that there are no options available by default that will send data
off of the local network.
This test was running into a bug in unittest
(https://bugs.python.org/issue29620). Revisit this when we move to
pytest.
@jonmmease jonmmease merged commit 2482efd into master Dec 27, 2018
@nicolaskruchten nicolaskruchten deleted the enh_1290 branch June 19, 2020 16:12
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.

offline.py blocks 'responsive' config key
1 participant