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
Error in WebAgg When "S" Key is Pressed #3966
Comments
I'd vote in favor of raising a warning here instead of crashing the app. |
Specifically: diff --git a/lib/matplotlib/backends/backend_webagg_core.py b/lib/matplotlib/backends/backend_webagg_core.py
index ceb43ba..da3b994 100644
--- a/lib/matplotlib/backends/backend_webagg_core.py
+++ b/lib/matplotlib/backends/backend_webagg_core.py
@@ -19,6 +19,7 @@ import io
import json
import os
import time
+import warnings
import numpy as np
@@ -318,6 +319,10 @@ class NavigationToolbar2WebAgg(backend_bases.NavigationToolbar2):
self.canvas.send_event(
"rubberband", x0=-1, y0=-1, x1=-1, y1=-1)
+ def save_figure(self, *args):
+ """Save the current figure"""
+ warnings.warn('Save figure not implemented in Web Backend')
+
class FigureManagerWebAgg(backend_bases.FigureManagerBase):
ToolbarCls = NavigationToolbar2WebAgg |
👍 On the super wish list - I'd love to have a little console on the webagg/nbagg interface which allowed us to propagate warnings to the user directly in the browser. |
FYI I got a gittip for this. Ugh.... |
Well prime4commit to be precise. |
I think the projects position is to just ignore them. I also dug into it a while ago and I think it is worth some comically small amount in $ terms and no one hand actually claimed any mpl related coins yet. I think I marked the one I got as spam to try and train google to suppress it. |
I am using IPython 2.3.1 and ab549ac. To reproduce, run IPython and
%paste
the code below. Click on the figure and then press the 'S' key. The traceback below is printed and the figure becomes unresponsive.The text was updated successfully, but these errors were encountered: