Skip to content

Commit e19237a

Browse files
committed
regenerating code
1 parent d284d12 commit e19237a

File tree

1,512 files changed

+87477
-94244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,512 files changed

+87477
-94244
lines changed

plotly/graph_objects/__init__.py

Lines changed: 3 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sys
22
from typing import TYPE_CHECKING
3-
43
if TYPE_CHECKING:
54
from ..graph_objs import Waterfall
65
from ..graph_objs import Volume
@@ -131,148 +130,17 @@
131130
from ..graph_objs import layout
132131
else:
133132
from _plotly_utils.importers import relative_import
134-
135133
__all__, __getattr__, __dir__ = relative_import(
136134
__name__,
137-
[
138-
"..graph_objs.waterfall",
139-
"..graph_objs.volume",
140-
"..graph_objs.violin",
141-
"..graph_objs.treemap",
142-
"..graph_objs.table",
143-
"..graph_objs.surface",
144-
"..graph_objs.sunburst",
145-
"..graph_objs.streamtube",
146-
"..graph_objs.splom",
147-
"..graph_objs.scatterternary",
148-
"..graph_objs.scattersmith",
149-
"..graph_objs.scatterpolargl",
150-
"..graph_objs.scatterpolar",
151-
"..graph_objs.scattermapbox",
152-
"..graph_objs.scattermap",
153-
"..graph_objs.scattergl",
154-
"..graph_objs.scattergeo",
155-
"..graph_objs.scattercarpet",
156-
"..graph_objs.scatter3d",
157-
"..graph_objs.scatter",
158-
"..graph_objs.sankey",
159-
"..graph_objs.pie",
160-
"..graph_objs.parcoords",
161-
"..graph_objs.parcats",
162-
"..graph_objs.ohlc",
163-
"..graph_objs.mesh3d",
164-
"..graph_objs.isosurface",
165-
"..graph_objs.indicator",
166-
"..graph_objs.image",
167-
"..graph_objs.icicle",
168-
"..graph_objs.histogram2dcontour",
169-
"..graph_objs.histogram2d",
170-
"..graph_objs.histogram",
171-
"..graph_objs.heatmap",
172-
"..graph_objs.funnelarea",
173-
"..graph_objs.funnel",
174-
"..graph_objs.densitymapbox",
175-
"..graph_objs.densitymap",
176-
"..graph_objs.contourcarpet",
177-
"..graph_objs.contour",
178-
"..graph_objs.cone",
179-
"..graph_objs.choroplethmapbox",
180-
"..graph_objs.choroplethmap",
181-
"..graph_objs.choropleth",
182-
"..graph_objs.carpet",
183-
"..graph_objs.candlestick",
184-
"..graph_objs.box",
185-
"..graph_objs.barpolar",
186-
"..graph_objs.bar",
187-
"..graph_objs.layout",
188-
],
189-
[
190-
"..graph_objs.Waterfall",
191-
"..graph_objs.Volume",
192-
"..graph_objs.Violin",
193-
"..graph_objs.Treemap",
194-
"..graph_objs.Table",
195-
"..graph_objs.Surface",
196-
"..graph_objs.Sunburst",
197-
"..graph_objs.Streamtube",
198-
"..graph_objs.Splom",
199-
"..graph_objs.Scatterternary",
200-
"..graph_objs.Scattersmith",
201-
"..graph_objs.Scatterpolargl",
202-
"..graph_objs.Scatterpolar",
203-
"..graph_objs.Scattermapbox",
204-
"..graph_objs.Scattermap",
205-
"..graph_objs.Scattergl",
206-
"..graph_objs.Scattergeo",
207-
"..graph_objs.Scattercarpet",
208-
"..graph_objs.Scatter3d",
209-
"..graph_objs.Scatter",
210-
"..graph_objs.Sankey",
211-
"..graph_objs.Pie",
212-
"..graph_objs.Parcoords",
213-
"..graph_objs.Parcats",
214-
"..graph_objs.Ohlc",
215-
"..graph_objs.Mesh3d",
216-
"..graph_objs.Isosurface",
217-
"..graph_objs.Indicator",
218-
"..graph_objs.Image",
219-
"..graph_objs.Icicle",
220-
"..graph_objs.Histogram2dContour",
221-
"..graph_objs.Histogram2d",
222-
"..graph_objs.Histogram",
223-
"..graph_objs.Heatmap",
224-
"..graph_objs.Funnelarea",
225-
"..graph_objs.Funnel",
226-
"..graph_objs.Densitymapbox",
227-
"..graph_objs.Densitymap",
228-
"..graph_objs.Contourcarpet",
229-
"..graph_objs.Contour",
230-
"..graph_objs.Cone",
231-
"..graph_objs.Choroplethmapbox",
232-
"..graph_objs.Choroplethmap",
233-
"..graph_objs.Choropleth",
234-
"..graph_objs.Carpet",
235-
"..graph_objs.Candlestick",
236-
"..graph_objs.Box",
237-
"..graph_objs.Barpolar",
238-
"..graph_objs.Bar",
239-
"..graph_objs.Layout",
240-
"..graph_objs.Frame",
241-
"..graph_objs.Figure",
242-
"..graph_objs.Data",
243-
"..graph_objs.Annotations",
244-
"..graph_objs.Frames",
245-
"..graph_objs.AngularAxis",
246-
"..graph_objs.Annotation",
247-
"..graph_objs.ColorBar",
248-
"..graph_objs.Contours",
249-
"..graph_objs.ErrorX",
250-
"..graph_objs.ErrorY",
251-
"..graph_objs.ErrorZ",
252-
"..graph_objs.Font",
253-
"..graph_objs.Legend",
254-
"..graph_objs.Line",
255-
"..graph_objs.Margin",
256-
"..graph_objs.Marker",
257-
"..graph_objs.RadialAxis",
258-
"..graph_objs.Scene",
259-
"..graph_objs.Stream",
260-
"..graph_objs.XAxis",
261-
"..graph_objs.YAxis",
262-
"..graph_objs.ZAxis",
263-
"..graph_objs.XBins",
264-
"..graph_objs.YBins",
265-
"..graph_objs.Trace",
266-
"..graph_objs.Histogram2dcontour",
267-
],
135+
['..graph_objs.waterfall', '..graph_objs.volume', '..graph_objs.violin', '..graph_objs.treemap', '..graph_objs.table', '..graph_objs.surface', '..graph_objs.sunburst', '..graph_objs.streamtube', '..graph_objs.splom', '..graph_objs.scatterternary', '..graph_objs.scattersmith', '..graph_objs.scatterpolargl', '..graph_objs.scatterpolar', '..graph_objs.scattermapbox', '..graph_objs.scattermap', '..graph_objs.scattergl', '..graph_objs.scattergeo', '..graph_objs.scattercarpet', '..graph_objs.scatter3d', '..graph_objs.scatter', '..graph_objs.sankey', '..graph_objs.pie', '..graph_objs.parcoords', '..graph_objs.parcats', '..graph_objs.ohlc', '..graph_objs.mesh3d', '..graph_objs.isosurface', '..graph_objs.indicator', '..graph_objs.image', '..graph_objs.icicle', '..graph_objs.histogram2dcontour', '..graph_objs.histogram2d', '..graph_objs.histogram', '..graph_objs.heatmap', '..graph_objs.funnelarea', '..graph_objs.funnel', '..graph_objs.densitymapbox', '..graph_objs.densitymap', '..graph_objs.contourcarpet', '..graph_objs.contour', '..graph_objs.cone', '..graph_objs.choroplethmapbox', '..graph_objs.choroplethmap', '..graph_objs.choropleth', '..graph_objs.carpet', '..graph_objs.candlestick', '..graph_objs.box', '..graph_objs.barpolar', '..graph_objs.bar', '..graph_objs.layout'],
136+
['..graph_objs.Waterfall', '..graph_objs.Volume', '..graph_objs.Violin', '..graph_objs.Treemap', '..graph_objs.Table', '..graph_objs.Surface', '..graph_objs.Sunburst', '..graph_objs.Streamtube', '..graph_objs.Splom', '..graph_objs.Scatterternary', '..graph_objs.Scattersmith', '..graph_objs.Scatterpolargl', '..graph_objs.Scatterpolar', '..graph_objs.Scattermapbox', '..graph_objs.Scattermap', '..graph_objs.Scattergl', '..graph_objs.Scattergeo', '..graph_objs.Scattercarpet', '..graph_objs.Scatter3d', '..graph_objs.Scatter', '..graph_objs.Sankey', '..graph_objs.Pie', '..graph_objs.Parcoords', '..graph_objs.Parcats', '..graph_objs.Ohlc', '..graph_objs.Mesh3d', '..graph_objs.Isosurface', '..graph_objs.Indicator', '..graph_objs.Image', '..graph_objs.Icicle', '..graph_objs.Histogram2dContour', '..graph_objs.Histogram2d', '..graph_objs.Histogram', '..graph_objs.Heatmap', '..graph_objs.Funnelarea', '..graph_objs.Funnel', '..graph_objs.Densitymapbox', '..graph_objs.Densitymap', '..graph_objs.Contourcarpet', '..graph_objs.Contour', '..graph_objs.Cone', '..graph_objs.Choroplethmapbox', '..graph_objs.Choroplethmap', '..graph_objs.Choropleth', '..graph_objs.Carpet', '..graph_objs.Candlestick', '..graph_objs.Box', '..graph_objs.Barpolar', '..graph_objs.Bar', '..graph_objs.Layout', '..graph_objs.Frame', '..graph_objs.Figure', '..graph_objs.Data', '..graph_objs.Annotations', '..graph_objs.Frames', '..graph_objs.AngularAxis', '..graph_objs.Annotation', '..graph_objs.ColorBar', '..graph_objs.Contours', '..graph_objs.ErrorX', '..graph_objs.ErrorY', '..graph_objs.ErrorZ', '..graph_objs.Font', '..graph_objs.Legend', '..graph_objs.Line', '..graph_objs.Margin', '..graph_objs.Marker', '..graph_objs.RadialAxis', '..graph_objs.Scene', '..graph_objs.Stream', '..graph_objs.XAxis', '..graph_objs.YAxis', '..graph_objs.ZAxis', '..graph_objs.XBins', '..graph_objs.YBins', '..graph_objs.Trace', '..graph_objs.Histogram2dcontour']
268137
)
269138

270139

271140
if sys.version_info < (3, 7) or TYPE_CHECKING:
272141
try:
273142
import ipywidgets as _ipywidgets
274143
from packaging.version import Version as _Version
275-
276144
if _Version(_ipywidgets.__version__) >= _Version("7.0.0"):
277145
from ..graph_objs._figurewidget import FigureWidget
278146
else:
@@ -282,24 +150,21 @@
282150
else:
283151
__all__.append("FigureWidget")
284152
orig_getattr = __getattr__
285-
286153
def __getattr__(import_name):
287154
if import_name == "FigureWidget":
288155
try:
289156
import ipywidgets
290157
from packaging.version import Version
291-
292158
if Version(ipywidgets.__version__) >= Version("7.0.0"):
293159
from ..graph_objs._figurewidget import FigureWidget
294-
295160
return FigureWidget
296161
else:
297162
raise ImportError()
298163
except Exception:
299164
from ..missing_anywidget import FigureWidget
300-
301165
return FigureWidget
302166
else:
303167
raise ImportError()
304168

305169
return orig_getattr(import_name)
170+

plotly/graph_objs/__init__.py

Lines changed: 3 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sys
22
from typing import TYPE_CHECKING
3-
43
if TYPE_CHECKING:
54
from ._bar import Bar
65
from ._barpolar import Barpolar
@@ -131,148 +130,17 @@
131130
from . import waterfall
132131
else:
133132
from _plotly_utils.importers import relative_import
134-
135133
__all__, __getattr__, __dir__ = relative_import(
136134
__name__,
137-
[
138-
".bar",
139-
".barpolar",
140-
".box",
141-
".candlestick",
142-
".carpet",
143-
".choropleth",
144-
".choroplethmap",
145-
".choroplethmapbox",
146-
".cone",
147-
".contour",
148-
".contourcarpet",
149-
".densitymap",
150-
".densitymapbox",
151-
".funnel",
152-
".funnelarea",
153-
".heatmap",
154-
".histogram",
155-
".histogram2d",
156-
".histogram2dcontour",
157-
".icicle",
158-
".image",
159-
".indicator",
160-
".isosurface",
161-
".layout",
162-
".mesh3d",
163-
".ohlc",
164-
".parcats",
165-
".parcoords",
166-
".pie",
167-
".sankey",
168-
".scatter",
169-
".scatter3d",
170-
".scattercarpet",
171-
".scattergeo",
172-
".scattergl",
173-
".scattermap",
174-
".scattermapbox",
175-
".scatterpolar",
176-
".scatterpolargl",
177-
".scattersmith",
178-
".scatterternary",
179-
".splom",
180-
".streamtube",
181-
".sunburst",
182-
".surface",
183-
".table",
184-
".treemap",
185-
".violin",
186-
".volume",
187-
".waterfall",
188-
],
189-
[
190-
"._bar.Bar",
191-
"._barpolar.Barpolar",
192-
"._box.Box",
193-
"._candlestick.Candlestick",
194-
"._carpet.Carpet",
195-
"._choropleth.Choropleth",
196-
"._choroplethmap.Choroplethmap",
197-
"._choroplethmapbox.Choroplethmapbox",
198-
"._cone.Cone",
199-
"._contour.Contour",
200-
"._contourcarpet.Contourcarpet",
201-
"._densitymap.Densitymap",
202-
"._densitymapbox.Densitymapbox",
203-
"._deprecations.AngularAxis",
204-
"._deprecations.Annotation",
205-
"._deprecations.Annotations",
206-
"._deprecations.ColorBar",
207-
"._deprecations.Contours",
208-
"._deprecations.Data",
209-
"._deprecations.ErrorX",
210-
"._deprecations.ErrorY",
211-
"._deprecations.ErrorZ",
212-
"._deprecations.Font",
213-
"._deprecations.Frames",
214-
"._deprecations.Histogram2dcontour",
215-
"._deprecations.Legend",
216-
"._deprecations.Line",
217-
"._deprecations.Margin",
218-
"._deprecations.Marker",
219-
"._deprecations.RadialAxis",
220-
"._deprecations.Scene",
221-
"._deprecations.Stream",
222-
"._deprecations.Trace",
223-
"._deprecations.XAxis",
224-
"._deprecations.XBins",
225-
"._deprecations.YAxis",
226-
"._deprecations.YBins",
227-
"._deprecations.ZAxis",
228-
"._figure.Figure",
229-
"._frame.Frame",
230-
"._funnel.Funnel",
231-
"._funnelarea.Funnelarea",
232-
"._heatmap.Heatmap",
233-
"._histogram.Histogram",
234-
"._histogram2d.Histogram2d",
235-
"._histogram2dcontour.Histogram2dContour",
236-
"._icicle.Icicle",
237-
"._image.Image",
238-
"._indicator.Indicator",
239-
"._isosurface.Isosurface",
240-
"._layout.Layout",
241-
"._mesh3d.Mesh3d",
242-
"._ohlc.Ohlc",
243-
"._parcats.Parcats",
244-
"._parcoords.Parcoords",
245-
"._pie.Pie",
246-
"._sankey.Sankey",
247-
"._scatter.Scatter",
248-
"._scatter3d.Scatter3d",
249-
"._scattercarpet.Scattercarpet",
250-
"._scattergeo.Scattergeo",
251-
"._scattergl.Scattergl",
252-
"._scattermap.Scattermap",
253-
"._scattermapbox.Scattermapbox",
254-
"._scatterpolar.Scatterpolar",
255-
"._scatterpolargl.Scatterpolargl",
256-
"._scattersmith.Scattersmith",
257-
"._scatterternary.Scatterternary",
258-
"._splom.Splom",
259-
"._streamtube.Streamtube",
260-
"._sunburst.Sunburst",
261-
"._surface.Surface",
262-
"._table.Table",
263-
"._treemap.Treemap",
264-
"._violin.Violin",
265-
"._volume.Volume",
266-
"._waterfall.Waterfall",
267-
],
135+
['.bar', '.barpolar', '.box', '.candlestick', '.carpet', '.choropleth', '.choroplethmap', '.choroplethmapbox', '.cone', '.contour', '.contourcarpet', '.densitymap', '.densitymapbox', '.funnel', '.funnelarea', '.heatmap', '.histogram', '.histogram2d', '.histogram2dcontour', '.icicle', '.image', '.indicator', '.isosurface', '.layout', '.mesh3d', '.ohlc', '.parcats', '.parcoords', '.pie', '.sankey', '.scatter', '.scatter3d', '.scattercarpet', '.scattergeo', '.scattergl', '.scattermap', '.scattermapbox', '.scatterpolar', '.scatterpolargl', '.scattersmith', '.scatterternary', '.splom', '.streamtube', '.sunburst', '.surface', '.table', '.treemap', '.violin', '.volume', '.waterfall'],
136+
['._bar.Bar', '._barpolar.Barpolar', '._box.Box', '._candlestick.Candlestick', '._carpet.Carpet', '._choropleth.Choropleth', '._choroplethmap.Choroplethmap', '._choroplethmapbox.Choroplethmapbox', '._cone.Cone', '._contour.Contour', '._contourcarpet.Contourcarpet', '._densitymap.Densitymap', '._densitymapbox.Densitymapbox', '._deprecations.AngularAxis', '._deprecations.Annotation', '._deprecations.Annotations', '._deprecations.ColorBar', '._deprecations.Contours', '._deprecations.Data', '._deprecations.ErrorX', '._deprecations.ErrorY', '._deprecations.ErrorZ', '._deprecations.Font', '._deprecations.Frames', '._deprecations.Histogram2dcontour', '._deprecations.Legend', '._deprecations.Line', '._deprecations.Margin', '._deprecations.Marker', '._deprecations.RadialAxis', '._deprecations.Scene', '._deprecations.Stream', '._deprecations.Trace', '._deprecations.XAxis', '._deprecations.XBins', '._deprecations.YAxis', '._deprecations.YBins', '._deprecations.ZAxis', '._figure.Figure', '._frame.Frame', '._funnel.Funnel', '._funnelarea.Funnelarea', '._heatmap.Heatmap', '._histogram.Histogram', '._histogram2d.Histogram2d', '._histogram2dcontour.Histogram2dContour', '._icicle.Icicle', '._image.Image', '._indicator.Indicator', '._isosurface.Isosurface', '._layout.Layout', '._mesh3d.Mesh3d', '._ohlc.Ohlc', '._parcats.Parcats', '._parcoords.Parcoords', '._pie.Pie', '._sankey.Sankey', '._scatter.Scatter', '._scatter3d.Scatter3d', '._scattercarpet.Scattercarpet', '._scattergeo.Scattergeo', '._scattergl.Scattergl', '._scattermap.Scattermap', '._scattermapbox.Scattermapbox', '._scatterpolar.Scatterpolar', '._scatterpolargl.Scatterpolargl', '._scattersmith.Scattersmith', '._scatterternary.Scatterternary', '._splom.Splom', '._streamtube.Streamtube', '._sunburst.Sunburst', '._surface.Surface', '._table.Table', '._treemap.Treemap', '._violin.Violin', '._volume.Volume', '._waterfall.Waterfall']
268137
)
269138

270139

271140
if sys.version_info < (3, 7) or TYPE_CHECKING:
272141
try:
273142
import ipywidgets as _ipywidgets
274143
from packaging.version import Version as _Version
275-
276144
if _Version(_ipywidgets.__version__) >= _Version("7.0.0"):
277145
from ..graph_objs._figurewidget import FigureWidget
278146
else:
@@ -282,24 +150,21 @@
282150
else:
283151
__all__.append("FigureWidget")
284152
orig_getattr = __getattr__
285-
286153
def __getattr__(import_name):
287154
if import_name == "FigureWidget":
288155
try:
289156
import ipywidgets
290157
from packaging.version import Version
291-
292158
if Version(ipywidgets.__version__) >= Version("7.0.0"):
293159
from ..graph_objs._figurewidget import FigureWidget
294-
295160
return FigureWidget
296161
else:
297162
raise ImportError()
298163
except Exception:
299164
from ..missing_anywidget import FigureWidget
300-
301165
return FigureWidget
302166
else:
303167
raise ImportError()
304168

305169
return orig_getattr(import_name)
170+

0 commit comments

Comments
 (0)