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

Access _fullLayout, _fullData and JS errors from Python #1967

Closed
nicolaskruchten opened this issue Dec 4, 2019 · 3 comments
Closed

Access _fullLayout, _fullData and JS errors from Python #1967

nicolaskruchten opened this issue Dec 4, 2019 · 3 comments
Milestone

Comments

@nicolaskruchten
Copy link
Contributor

nicolaskruchten commented Dec 4, 2019

Just to record my pie-in-the-sky idea: if Orca had a mode where instead of returning an image, it returned a JSON object that contained _fullLayout, _fullData and some warning objects, then we could make it much easier for users to understand the defaulting logic and various other-wise opaque error messages. From Python this could be accessed via a new renderer as fig.show("full_json") or something?

@nicolaskruchten
Copy link
Contributor Author

@antoinerg heads-up!

@nicolaskruchten nicolaskruchten added this to the 4.9.0 milestone May 8, 2020
@nicolaskruchten nicolaskruchten modified the milestones: 4.9.0, 4.10 Jul 4, 2020
@nicolaskruchten
Copy link
Contributor Author

The JSON bit is going to be pretty awesome, based on Kaleido... basically something as simple as:

import plotly.io as pio
import json
import plotly.graph_objects as go

def coerce(fig):
    return go.Figure(json.loads(pio.kaleido.scope.transform(fig, format="json")), skip_invalid=True)

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

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

No branches or pull requests

2 participants