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

Fix honouring of validate=False for all renderers #1576

Merged
merged 1 commit into from
May 25, 2019

Conversation

matthewwardrop
Copy link
Contributor

@matthewwardrop matthewwardrop commented May 23, 2019

Greetings!

We have been working with Plotly recently and attempting to plot Plotly JSON blobs generated from R in Python, and (as it happens) these blobs are not conformant to the Plotly JSON schema. Passing validate=False to the plotly.offline.plot method works fine, but not for plotly.offline.iplot, due to validation being enabled by default for some of the rendering backends. One approach to fixing this would be to pass validate down to the renderers, but it appears based on validate=False being passed by default to some backends that this may have been an oversight in the default passed to these mimebundle renderers. This patch makes this consistent, and causes all mimebundle generations to no longer validate. Since validation would have happened earlier if not explicitly passing validate=False, I believe this should be okay.

@jonmmease jonmmease added this to the v3.10 milestone May 23, 2019
@jonmmease
Copy link
Contributor

Thanks for digging in on this @matthewwardrop, I think you're right that this was an oversight. I'll take a closer look soon and pull this in for 3.10.0. Thanks!

@matthewwardrop
Copy link
Contributor Author

Thanks for the prompt response @jonmmease :).

@jonmmease
Copy link
Contributor

Looks great. Thanks again @matthewwardrop

@jonmmease jonmmease merged commit 7f17018 into plotly:master May 25, 2019
@jonmmease jonmmease changed the title Fix honouring of validate=False for interactive plots. Fix honouring of validate=False for all renderers May 29, 2019
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.

2 participants