File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,6 @@ def __init__(self,
118
118
layout = None ,
119
119
frames = None ):
120
120
121
- # Validate Frames
122
- # ---------------
123
- # Frames are not supported by figure widget
124
- if frames :
125
- BaseFigureWidget ._display_frames_error ()
126
- self ._frame_objs = None
127
-
128
121
# Call superclass constructors
129
122
# ----------------------------
130
123
# Note: We rename layout to layout_plotly because to deconflict it
@@ -133,6 +126,13 @@ def __init__(self,
133
126
super ().__init__ (data = data ,
134
127
layout_plotly = layout )
135
128
129
+ # Validate Frames
130
+ # ---------------
131
+ # Frames are not supported by figure widget
132
+ if self ._frame_objs :
133
+ BaseFigureWidget ._display_frames_error ()
134
+ self ._frame_objs = None
135
+
136
136
# Message States
137
137
# --------------
138
138
# ### Layout ###
@@ -930,8 +930,8 @@ def _display_frames_error():
930
930
ValueError
931
931
always
932
932
"""
933
- msg = """\
934
- Frames are not supported by the plotly.graph_objs.FigureWidget class.\n "
933
+ msg = """
934
+ Frames are not supported by the plotly.graph_objs.FigureWidget class.
935
935
Note: Frames are supported by the plotly.graph_objs.Figure class"""
936
936
raise ValueError (msg )
937
937
You can’t perform that action at this time.
0 commit comments