Skip to content

Regenerate plotly.py from plotly.js #4821

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

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions packages/javascript/jupyterlab-plotly/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/javascript/jupyterlab-plotly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@lumino/messaging": "^1.2.3",
"@lumino/widgets": "^1.8.1",
"lodash": "^4.17.4",
"plotly.js": "https://output.circle-artifacts.com/output/job/8cb816cf-7c8e-4c5d-a30a-94b67aa1b352/artifacts/0/plotly.js.tgz"
"plotly.js": "https://output.circle-artifacts.com/output/job/f0bb742f-5266-49b7-a0f9-60247be3560f/artifacts/0/plotly.js.tgz"
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ def grouptitlefont(self):
Sets the font for group titles in hover (unified modes).
Defaults to `hoverlabel.font`.

The 'grouptitlefont' property is an instance of Grouptitle_font
The 'grouptitlefont' property is an instance of Grouptitlefont
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitle_font`
- An instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`
- A dict of string/value properties that will be passed
to the Grouptitle_font constructor
to the Grouptitlefont constructor

Supported dict properties:

Expand Down Expand Up @@ -290,7 +290,7 @@ def grouptitlefont(self):

Returns
-------
plotly.graph_objs.layout.hoverlabel.Grouptitle_font
plotly.graph_objs.layout.hoverlabel.Grouptitlefont
"""
return self["grouptitlefont"]

Expand Down
8 changes: 4 additions & 4 deletions packages/python/plotly/plotly/graph_objs/layout/_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ def grouptitlefont(self):
Sets the font for group titles in legend. Defaults to
`legend.font` with its size increased about 10%.

The 'grouptitlefont' property is an instance of Grouptitle_font
The 'grouptitlefont' property is an instance of Grouptitlefont
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Grouptitle_font`
- An instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`
- A dict of string/value properties that will be passed
to the Grouptitle_font constructor
to the Grouptitlefont constructor

Supported dict properties:

Expand Down Expand Up @@ -375,7 +375,7 @@ def grouptitlefont(self):

Returns
-------
plotly.graph_objs.layout.legend.Grouptitle_font
plotly.graph_objs.layout.legend.Grouptitlefont
"""
return self["grouptitlefont"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._font import Font
from ._grouptitlefont import Grouptitle_font
from ._grouptitlefont import Grouptitlefont
else:
from _plotly_utils.importers import relative_import

__all__, __getattr__, __dir__ = relative_import(
__name__, [], ["._font.Font", "._grouptitlefont.Grouptitle_font"]
__name__, [], ["._font.Font", "._grouptitlefont.Grouptitlefont"]
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import copy as _copy


class Grouptitle_font(_BaseLayoutHierarchyType):
class Grouptitlefont(_BaseLayoutHierarchyType):

# class properties
# --------------------
Expand Down Expand Up @@ -324,7 +324,7 @@ def __init__(
**kwargs,
):
"""
Construct a new Grouptitle_font object
Construct a new Grouptitlefont object

Sets the font for group titles in hover (unified modes).
Defaults to `hoverlabel.font`.
Expand All @@ -334,7 +334,7 @@ def __init__(
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.hoverla
bel.Grouptitle_font`
bel.Grouptitlefont`
color

family
Expand Down Expand Up @@ -376,9 +376,9 @@ def __init__(

Returns
-------
Grouptitle_font
Grouptitlefont
"""
super(Grouptitle_font, self).__init__("grouptitlefont")
super(Grouptitlefont, self).__init__("grouptitlefont")

if "_parent" in kwargs:
self._parent = kwargs["_parent"]
Expand All @@ -395,9 +395,9 @@ def __init__(
else:
raise ValueError(
"""\
The first argument to the plotly.graph_objs.layout.hoverlabel.Grouptitle_font
The first argument to the plotly.graph_objs.layout.hoverlabel.Grouptitlefont
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitle_font`"""
an instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`"""
)

# Handle skip_invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._font import Font
from ._grouptitlefont import Grouptitle_font
from ._grouptitlefont import Grouptitlefont
from ._title import Title
from . import title
else:
Expand All @@ -12,5 +12,5 @@
__all__, __getattr__, __dir__ = relative_import(
__name__,
[".title"],
["._font.Font", "._grouptitlefont.Grouptitle_font", "._title.Title"],
["._font.Font", "._grouptitlefont.Grouptitlefont", "._title.Title"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import copy as _copy


class Grouptitle_font(_BaseLayoutHierarchyType):
class Grouptitlefont(_BaseLayoutHierarchyType):

# class properties
# --------------------
Expand Down Expand Up @@ -324,7 +324,7 @@ def __init__(
**kwargs,
):
"""
Construct a new Grouptitle_font object
Construct a new Grouptitlefont object

Sets the font for group titles in legend. Defaults to
`legend.font` with its size increased about 10%.
Expand All @@ -334,7 +334,7 @@ def __init__(
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.legend.Grouptitle_font`
:class:`plotly.graph_objs.layout.legend.Grouptitlefont`
color

family
Expand Down Expand Up @@ -376,9 +376,9 @@ def __init__(

Returns
-------
Grouptitle_font
Grouptitlefont
"""
super(Grouptitle_font, self).__init__("grouptitlefont")
super(Grouptitlefont, self).__init__("grouptitlefont")

if "_parent" in kwargs:
self._parent = kwargs["_parent"]
Expand All @@ -395,9 +395,9 @@ def __init__(
else:
raise ValueError(
"""\
The first argument to the plotly.graph_objs.layout.legend.Grouptitle_font
The first argument to the plotly.graph_objs.layout.legend.Grouptitlefont
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.legend.Grouptitle_font`"""
an instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`"""
)

# Handle skip_invalid
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/offline/_plotlyjs_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DO NOT EDIT
# This file is generated by the updatebundle setup.py command
__plotlyjs_version__ = "plotly/plotly.js_master_2024-10-17_a5b202c8"
__plotlyjs_version__ = "plotly/plotly.js_master_2024-10-22_ef721c41"
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/package_data/plotly.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._namelength import NamelengthValidator
from ._grouptitlefont import Grouptitle_fontValidator
from ._grouptitlefont import GrouptitlefontValidator
from ._font import FontValidator
from ._bordercolor import BordercolorValidator
from ._bgcolor import BgcolorValidator
Expand All @@ -16,7 +16,7 @@
[],
[
"._namelength.NamelengthValidator",
"._grouptitlefont.Grouptitle_fontValidator",
"._grouptitlefont.GrouptitlefontValidator",
"._font.FontValidator",
"._bordercolor.BordercolorValidator",
"._bgcolor.BgcolorValidator",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import _plotly_utils.basevalidators


class Grouptitle_fontValidator(_plotly_utils.basevalidators.CompoundValidator):
class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="grouptitlefont", parent_name="layout.hoverlabel", **kwargs
):
super(Grouptitle_fontValidator, self).__init__(
super(GrouptitlefontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Grouptitle_font"),
data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"),
data_docs=kwargs.pop(
"data_docs",
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from ._itemdoubleclick import ItemdoubleclickValidator
from ._itemclick import ItemclickValidator
from ._indentation import IndentationValidator
from ._grouptitlefont import Grouptitle_fontValidator
from ._grouptitlefont import GrouptitlefontValidator
from ._groupclick import GroupclickValidator
from ._font import FontValidator
from ._entrywidthmode import EntrywidthmodeValidator
Expand Down Expand Up @@ -53,7 +53,7 @@
"._itemdoubleclick.ItemdoubleclickValidator",
"._itemclick.ItemclickValidator",
"._indentation.IndentationValidator",
"._grouptitlefont.Grouptitle_fontValidator",
"._grouptitlefont.GrouptitlefontValidator",
"._groupclick.GroupclickValidator",
"._font.FontValidator",
"._entrywidthmode.EntrywidthmodeValidator",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import _plotly_utils.basevalidators


class Grouptitle_fontValidator(_plotly_utils.basevalidators.CompoundValidator):
class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="grouptitlefont", parent_name="layout.legend", **kwargs
):
super(Grouptitle_fontValidator, self).__init__(
super(GrouptitlefontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Grouptitle_font"),
data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"),
data_docs=kwargs.pop(
"data_docs",
"""
Expand Down