-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
On-figure error for mapbox-token-related problems #4098
Comments
(Writing down a few thoughts from a private convo with @nicolaskruchten ) Instead of showing the errors on the figure (like we currently do for WebGL-initialisation errors), perhaps it would be better to add a way to propagate ALL |
This would be great for the “totals don’t match” warnings from sunburst/treemap as well for Python/R users who won’t naturally go check the console or might not be able to easily (ie in RStudio) |
That sounds great, except that Lib.notifier goes away by itself fairly quickly. These errors should stick around until the user clears them. Hopefully a small tweak to make notifier support that mode. |
Here's a WIP branch that's add a new config option that allows log/warn/error messages to show up in "notifier" on-graph popups https://github.com/plotly/plotly.js/compare/onGraphLogging Demos:
Let me know what you think. |
Nicely done. I'd vote for reducing the transition time a bit. |
Ping @nicolaskruchten |
Looks awesome to me! I wonder about the name |
|
Semi-related: what is the current "level" for hierarchy-related issues in sunburst and treemap? Right now they don't show up in the Dash "debug" mode developer tools because they're not JS errors being thrown I think. The Mapbox-token-related stuff does show up though. It would be really helpful for Dash users to have the sunburst/treemap stuff appear in the Dash dev tools. |
They use |
Maybe dash only catches the |
Yeah it does. Is there a way to catch the log messages from a wrapper? |
Or could we consider making the hierarchy stuff actual errors? they seem to be at the same level of severity as mapbox token stuff to me... |
We could, but to me mapbox here is the exception. At present, we don't throw errors on bad data/layout inputs. We only throw errors on bad API calls (e.g. when you call
Not that I can think of, but it might be cool to trigger events e.g. |
Works for me: #4462 |
For the two token-related errors, we should show the error in the figure:
There's a third we could try to catch:
The text was updated successfully, but these errors were encountered: