Search is not available for this dataset
identifier stringlengths 1 155 | parameters stringlengths 2 6.09k | docstring stringlengths 11 63.4k | docstring_summary stringlengths 0 63.4k | function stringlengths 29 99.8k | function_tokens list | start_point list | end_point list | language stringclasses 1
value | docstring_language stringlengths 2 7 | docstring_language_predictions stringlengths 18 23 | is_langid_reliable stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
Hoverlabel.align | (self) |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... | def align(self):
"""
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeratio... | [
"def",
"align",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"align\"",
"]"
] | [
25,
4
] | [
40,
28
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.alignsrc | (self) |
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def alignsrc(self):
"""
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["alignsrc"] | [
"def",
"alignsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"alignsrc\"",
"]"
] | [
49,
4
] | [
60,
31
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolor | (self) |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... | def bgcolor(self):
"""
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
69,
4
] | [
120,
30
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bgcolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bgcolorsrc"] | [
"def",
"bgcolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolorsrc\"",
"]"
] | [
129,
4
] | [
140,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolor | (self) |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... | def bordercolor(self):
"""
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
149,
4
] | [
200,
34
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bordercolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bo... | [
"def",
"bordercolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolorsrc\"",
"]"
] | [
209,
4
] | [
221,
37
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.font | (self) |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... | def font(self):
"""
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.hoverlabel.Font`
- A dict of string/value properties that will be passed
to... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
230,
4
] | [
277,
27
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelength | (self) |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... | def namelength(self):
"""
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
... | [
"def",
"namelength",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelength\"",
"]"
] | [
286,
4
] | [
304,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelengthsrc | (self) |
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def namelengthsrc(self):
"""
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["name... | [
"def",
"namelengthsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelengthsrc\"",
"]"
] | [
313,
4
] | [
325,
36
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.__init__ | (
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
) |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.Hoverlabel`
align
Sets the horizontal alignment of the tex... |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.Hoverlabel`
align
Sets the horizontal alignment of the tex... | def __init__(
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
):
"""
Construct a n... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"align",
"=",
"None",
",",
"alignsrc",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bgcolorsrc",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"bordercolorsrc",
"=",
"None",
",",
"... | [
370,
4
] | [
502,
34
] | python | en | ['en', 'error', 'th'] | False |
Slider.active | (self) |
Determines which button (by index starting from 0) is
considered active.
The 'active' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Determines which button (by index starting from 0) is
considered active.
The 'active' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def active(self):
"""
Determines which button (by index starting from 0) is
considered active.
The 'active' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
retur... | [
"def",
"active",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"active\"",
"]"
] | [
40,
4
] | [
52,
29
] | python | en | ['en', 'error', 'th'] | False |
Slider.activebgcolor | (self) |
Sets the background color of the slider grip while dragging.
The 'activebgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hs... |
Sets the background color of the slider grip while dragging.
The 'activebgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hs... | def activebgcolor(self):
"""
Sets the background color of the slider grip while dragging.
The 'activebgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl... | [
"def",
"activebgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"activebgcolor\"",
"]"
] | [
61,
4
] | [
111,
36
] | python | en | ['en', 'error', 'th'] | False |
Slider.bgcolor | (self) |
Sets the background color of the slider.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100... |
Sets the background color of the slider.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100... | def bgcolor(self):
"""
Sets the background color of the slider.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hs... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
120,
4
] | [
170,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.bordercolor | (self) |
Sets the color of the border enclosing the slider.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e... |
Sets the color of the border enclosing the slider.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e... | def bordercolor(self):
"""
Sets the color of the border enclosing the slider.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
179,
4
] | [
229,
34
] | python | en | ['en', 'error', 'th'] | False |
Slider.borderwidth | (self) |
Sets the width (in px) of the border enclosing the slider.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) of the border enclosing the slider.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def borderwidth(self):
"""
Sets the width (in px) of the border enclosing the slider.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["bord... | [
"def",
"borderwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"borderwidth\"",
"]"
] | [
238,
4
] | [
249,
34
] | python | en | ['en', 'error', 'th'] | False |
Slider.currentvalue | (self) |
The 'currentvalue' property is an instance of Currentvalue
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`
- A dict of string/value properties that will be passed
to the Currentvalue constructor
Supported ... |
The 'currentvalue' property is an instance of Currentvalue
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`
- A dict of string/value properties that will be passed
to the Currentvalue constructor
Supported ... | def currentvalue(self):
"""
The 'currentvalue' property is an instance of Currentvalue
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`
- A dict of string/value properties that will be passed
to the Currentvalue cons... | [
"def",
"currentvalue",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"currentvalue\"",
"]"
] | [
258,
4
] | [
290,
35
] | python | en | ['en', 'error', 'th'] | False |
Slider.font | (self) |
Sets the font of the slider step labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... |
Sets the font of the slider step labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... | def font(self):
"""
Sets the font of the slider step labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Font`
- A dict of string/value properties that will be passed
to... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
299,
4
] | [
336,
27
] | python | en | ['en', 'error', 'th'] | False |
Slider.len | (self) |
Sets the length of the slider This measure excludes the padding
of both ends. That is, the slider's length is this length minus
the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
... |
Sets the length of the slider This measure excludes the padding
of both ends. That is, the slider's length is this length minus
the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def len(self):
"""
Sets the length of the slider This measure excludes the padding
of both ends. That is, the slider's length is this length minus
the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interval [0... | [
"def",
"len",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"len\"",
"]"
] | [
345,
4
] | [
358,
26
] | python | en | ['en', 'error', 'th'] | False |
Slider.lenmode | (self) |
Determines whether this slider length is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fraction', 'pixels']
Return... |
Determines whether this slider length is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fraction', 'pixels'] | def lenmode(self):
"""
Determines whether this slider length is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fracti... | [
"def",
"lenmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"lenmode\"",
"]"
] | [
367,
4
] | [
380,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.minorticklen | (self) |
Sets the length in pixels of minor step tick marks
The 'minorticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the length in pixels of minor step tick marks
The 'minorticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def minorticklen(self):
"""
Sets the length in pixels of minor step tick marks
The 'minorticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["minortickl... | [
"def",
"minorticklen",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"minorticklen\"",
"]"
] | [
389,
4
] | [
400,
35
] | python | en | ['en', 'error', 'th'] | False |
Slider.name | (self) |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... | def name(self):
"""
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` al... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
409,
4
] | [
427,
27
] | python | en | ['en', 'error', 'th'] | False |
Slider.pad | (self) |
Set the padding of the slider component along each side.
The 'pad' property is an instance of Pad
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Pad`
- A dict of string/value properties that will be passed
to the Pad const... |
Set the padding of the slider component along each side.
The 'pad' property is an instance of Pad
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Pad`
- A dict of string/value properties that will be passed
to the Pad const... | def pad(self):
"""
Set the padding of the slider component along each side.
The 'pad' property is an instance of Pad
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Pad`
- A dict of string/value properties that will be passed
... | [
"def",
"pad",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"pad\"",
"]"
] | [
436,
4
] | [
465,
26
] | python | en | ['en', 'error', 'th'] | False |
Slider.steps | (self) |
The 'steps' property is a tuple of instances of
Step that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.slider.Step
- A list or tuple of dicts of string/value properties that
will be passed to the Step constructor
Suppor... |
The 'steps' property is a tuple of instances of
Step that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.slider.Step
- A list or tuple of dicts of string/value properties that
will be passed to the Step constructor
Suppor... | def steps(self):
"""
The 'steps' property is a tuple of instances of
Step that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.slider.Step
- A list or tuple of dicts of string/value properties that
will be passed to the Step constru... | [
"def",
"steps",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"steps\"",
"]"
] | [
474,
4
] | [
540,
28
] | python | en | ['en', 'error', 'th'] | False |
Slider.stepdefaults | (self) |
When used in a template (as
layout.template.layout.slider.stepdefaults), sets the default
property values to use for elements of layout.slider.steps
The 'stepdefaults' property is an instance of Step
that may be specified as:
- An instance of :class:`plotly.graph_... |
When used in a template (as
layout.template.layout.slider.stepdefaults), sets the default
property values to use for elements of layout.slider.steps
The 'stepdefaults' property is an instance of Step
that may be specified as:
- An instance of :class:`plotly.graph_... | def stepdefaults(self):
"""
When used in a template (as
layout.template.layout.slider.stepdefaults), sets the default
property values to use for elements of layout.slider.steps
The 'stepdefaults' property is an instance of Step
that may be specified as:
- A... | [
"def",
"stepdefaults",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stepdefaults\"",
"]"
] | [
549,
4
] | [
567,
35
] | python | en | ['en', 'error', 'th'] | False |
Slider.templateitemname | (self) |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... | def templateitemname(self):
"""
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
... | [
"def",
"templateitemname",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"templateitemname\"",
"]"
] | [
576,
4
] | [
595,
39
] | python | en | ['en', 'error', 'th'] | False |
Slider.tickcolor | (self) |
Sets the color of the border enclosing the slider.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g... |
Sets the color of the border enclosing the slider.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g... | def tickcolor(self):
"""
Sets the color of the border enclosing the slider.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
... | [
"def",
"tickcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickcolor\"",
"]"
] | [
604,
4
] | [
654,
32
] | python | en | ['en', 'error', 'th'] | False |
Slider.ticklen | (self) |
Sets the length in pixels of step tick marks
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the length in pixels of step tick marks
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def ticklen(self):
"""
Sets the length in pixels of step tick marks
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["ticklen"] | [
"def",
"ticklen",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticklen\"",
"]"
] | [
663,
4
] | [
674,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.tickwidth | (self) |
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def tickwidth(self):
"""
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["tickwidth"] | [
"def",
"tickwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickwidth\"",
"]"
] | [
683,
4
] | [
694,
32
] | python | en | ['en', 'error', 'th'] | False |
Slider.transition | (self) |
The 'transition' property is an instance of Transition
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Transition`
- A dict of string/value properties that will be passed
to the Transition constructor
Supported dict pro... |
The 'transition' property is an instance of Transition
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Transition`
- A dict of string/value properties that will be passed
to the Transition constructor
Supported dict pro... | def transition(self):
"""
The 'transition' property is an instance of Transition
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.slider.Transition`
- A dict of string/value properties that will be passed
to the Transition constructor
... | [
"def",
"transition",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"transition\"",
"]"
] | [
703,
4
] | [
723,
33
] | python | en | ['en', 'error', 'th'] | False |
Slider.visible | (self) |
Determines whether or not the slider is visible.
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not the slider is visible.
The 'visible' property must be specified as a bool
(either True, or False) | def visible(self):
"""
Determines whether or not the slider is visible.
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["visible"] | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
732,
4
] | [
743,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.x | (self) |
Sets the x position (in normalized coordinates) of the slider.
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
|
Sets the x position (in normalized coordinates) of the slider.
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3] | def x(self):
"""
Sets the x position (in normalized coordinates) of the slider.
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
752,
4
] | [
763,
24
] | python | en | ['en', 'error', 'th'] | False |
Slider.xanchor | (self) |
Sets the slider's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
range selector.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['auto'... |
Sets the slider's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
range selector.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['auto'... | def xanchor(self):
"""
Sets the slider's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
range selector.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration v... | [
"def",
"xanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xanchor\"",
"]"
] | [
772,
4
] | [
786,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.y | (self) |
Sets the y position (in normalized coordinates) of the slider.
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
|
Sets the y position (in normalized coordinates) of the slider.
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3] | def y(self):
"""
Sets the y position (in normalized coordinates) of the slider.
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
795,
4
] | [
806,
24
] | python | en | ['en', 'error', 'th'] | False |
Slider.yanchor | (self) |
Sets the slider's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
range selector.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['auto', '... |
Sets the slider's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
range selector.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['auto', '... | def yanchor(self):
"""
Sets the slider's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
range selector.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration valu... | [
"def",
"yanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yanchor\"",
"]"
] | [
815,
4
] | [
829,
30
] | python | en | ['en', 'error', 'th'] | False |
Slider.__init__ | (
self,
arg=None,
active=None,
activebgcolor=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
currentvalue=None,
font=None,
len=None,
lenmode=None,
minorticklen=None,
name=None,
pad=None,
steps... |
Construct a new Slider object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Slider`
active
Determines which button (by index starting from 0) is
... |
Construct a new Slider object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Slider`
active
Determines which button (by index starting from 0) is
... | def __init__(
self,
arg=None,
active=None,
activebgcolor=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
currentvalue=None,
font=None,
len=None,
lenmode=None,
minorticklen=None,
name=None,
pad=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"active",
"=",
"None",
",",
"activebgcolor",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"borderwidth",
"=",
"None",
",",
"currentvalue",
"=",
"None",
","... | [
926,
4
] | [
1184,
34
] | python | en | ['en', 'error', 'th'] | False |
_dynamic_scatter.forward | (ctx, feats, coors, reduce_type='max') | convert kitti points(N, >=3) to voxels.
Args:
feats: [N, C] float tensor. points features to be reduced
into voxels.
coors: [N, ndim] int tensor. corresponding voxel coordinates
(specifically multi-dim voxel index) of each points.
reduce_type:... | convert kitti points(N, >=3) to voxels. | def forward(ctx, feats, coors, reduce_type='max'):
"""convert kitti points(N, >=3) to voxels.
Args:
feats: [N, C] float tensor. points features to be reduced
into voxels.
coors: [N, ndim] int tensor. corresponding voxel coordinates
(specifically m... | [
"def",
"forward",
"(",
"ctx",
",",
"feats",
",",
"coors",
",",
"reduce_type",
"=",
"'max'",
")",
":",
"results",
"=",
"dynamic_point_to_voxel_forward",
"(",
"feats",
",",
"coors",
",",
"reduce_type",
")",
"(",
"voxel_feats",
",",
"voxel_coors",
",",
"point2v... | [
11,
4
] | [
33,
39
] | python | en | ['it', 'en', 'hi'] | False |
DynamicScatter.__init__ | (self, voxel_size, point_cloud_range, average_points: bool) | Scatters points into voxels, used in the voxel encoder with
dynamic voxelization
**Note**: The CPU and GPU implementation get the same output, but
have numerical difference after summation and division (e.g., 5e-7).
Args:
average_points (bool): whether to use avg pooling... | Scatters points into voxels, used in the voxel encoder with
dynamic voxelization | def __init__(self, voxel_size, point_cloud_range, average_points: bool):
super(DynamicScatter, self).__init__()
"""Scatters points into voxels, used in the voxel encoder with
dynamic voxelization
**Note**: The CPU and GPU implementation get the same output, but
have numerical... | [
"def",
"__init__",
"(",
"self",
",",
"voxel_size",
",",
"point_cloud_range",
",",
"average_points",
":",
"bool",
")",
":",
"super",
"(",
"DynamicScatter",
",",
"self",
")",
".",
"__init__",
"(",
")",
"self",
".",
"voxel_size",
"=",
"voxel_size",
"self",
".... | [
54,
4
] | [
71,
44
] | python | en | ['en', 'en', 'en'] | True |
DynamicScatter.forward | (self, points, coors) |
Args:
input: NC points
|
Args:
input: NC points
| def forward(self, points, coors):
"""
Args:
input: NC points
"""
if coors.size(-1) == 3:
return self.forward_single(points, coors)
else:
batch_size = coors[-1, 0] + 1
voxels, voxel_coors = [], []
for i in range(batch_siz... | [
"def",
"forward",
"(",
"self",
",",
"points",
",",
"coors",
")",
":",
"if",
"coors",
".",
"size",
"(",
"-",
"1",
")",
"==",
"3",
":",
"return",
"self",
".",
"forward_single",
"(",
"points",
",",
"coors",
")",
"else",
":",
"batch_size",
"=",
"coors"... | [
77,
4
] | [
98,
42
] | python | en | ['en', 'error', 'th'] | False |
Ttype.__init__ | (self, protocol) |
Initialize ttype by storing protocol on ourselves and calling
the client to see if it supporst ttype.
Args:
protocol (Protocol): The protocol instance.
Notes:
The `self.ttype_step` indicates how far in the data
retrieval we've gotten.
|
Initialize ttype by storing protocol on ourselves and calling
the client to see if it supporst ttype. | def __init__(self, protocol):
"""
Initialize ttype by storing protocol on ourselves and calling
the client to see if it supporst ttype.
Args:
protocol (Protocol): The protocol instance.
Notes:
The `self.ttype_step` indicates how far in the data
... | [
"def",
"__init__",
"(",
"self",
",",
"protocol",
")",
":",
"self",
".",
"ttype_step",
"=",
"0",
"self",
".",
"protocol",
"=",
"protocol",
"# we set FORCEDENDLINE for clients not supporting ttype",
"self",
".",
"protocol",
".",
"protocol_flags",
"[",
"\"FORCEDENDLINE... | [
37,
4
] | [
60,
78
] | python | en | ['en', 'error', 'th'] | False |
Ttype.wont_ttype | (self, option) |
Callback if ttype is not supported by client.
Args:
option (Option): Not used.
|
Callback if ttype is not supported by client. | def wont_ttype(self, option):
"""
Callback if ttype is not supported by client.
Args:
option (Option): Not used.
"""
self.protocol.protocol_flags['TTYPE'] = False
self.protocol.handshake_done() | [
"def",
"wont_ttype",
"(",
"self",
",",
"option",
")",
":",
"self",
".",
"protocol",
".",
"protocol_flags",
"[",
"'TTYPE'",
"]",
"=",
"False",
"self",
".",
"protocol",
".",
"handshake_done",
"(",
")"
] | [
62,
4
] | [
71,
38
] | python | en | ['en', 'error', 'th'] | False |
Ttype.will_ttype | (self, option) |
Handles negotiation of the ttype protocol once the client has
confirmed that it will respond with the ttype protocol.
Args:
option (Option): Not used.
Notes:
The negotiation proceeds in several steps, each returning a
certain piece of information ab... |
Handles negotiation of the ttype protocol once the client has
confirmed that it will respond with the ttype protocol. | def will_ttype(self, option):
"""
Handles negotiation of the ttype protocol once the client has
confirmed that it will respond with the ttype protocol.
Args:
option (Option): Not used.
Notes:
The negotiation proceeds in several steps, each returning a
... | [
"def",
"will_ttype",
"(",
"self",
",",
"option",
")",
":",
"options",
"=",
"self",
".",
"protocol",
".",
"protocol_flags",
"if",
"options",
"and",
"options",
".",
"get",
"(",
"'TTYPE'",
",",
"False",
")",
"or",
"self",
".",
"ttype_step",
">",
"3",
":",... | [
73,
4
] | [
171,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.line.colorscale`. Has an effect only if in
`marker.line.color`is set to a numerical array. In case
`colorscale` is unspecified or `autocolorscale` is true, the
... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.line.colorscale`. Has an effect only if in
`marker.line.color`is set to a numerical array. In case
`colorscale` is unspecified or `autocolorscale` is true, the
... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.line.colorscale`. Has an effect only if in
`marker.line.color`is set to a numerical array. In case
`colorscale` is unspecifie... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
28,
4
] | [
45,
37
] | python | en | ['en', 'error', 'th'] | False |
Line.cauto | (self) |
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.line.color`) or the
bounds set in `marker.line.cmin` and `marker.line.cmax` Has an
effect only if in `marker.line.color`is set to a numerical
array. Defaults to `false` when `... |
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.line.color`) or the
bounds set in `marker.line.cmin` and `marker.line.cmax` Has an
effect only if in `marker.line.color`is set to a numerical
array. Defaults to `false` when `... | def cauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.line.color`) or the
bounds set in `marker.line.cmin` and `marker.line.cmax` Has an
effect only if in `marker.line.color`is set to a numerical
array... | [
"def",
"cauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cauto\"",
"]"
] | [
54,
4
] | [
70,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.cmax | (self) |
Sets the upper bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmin` must be set as well.
The 'cmax' property is a number and may be speci... |
Sets the upper bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmin` must be set as well.
The 'cmax' property is a number and may be speci... | def cmax(self):
"""
Sets the upper bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmin` must be set as well.
The 'cmax' property i... | [
"def",
"cmax",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmax\"",
"]"
] | [
79,
4
] | [
93,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.cmid | (self) |
Sets the mid-point of the color domain by scaling
`marker.line.cmin` and/or `marker.line.cmax` to be equidistant
to this point. Has an effect only if in `marker.line.color`is
set to a numerical array. Value should have the same units as
in `marker.line.color`. Has no effect when... |
Sets the mid-point of the color domain by scaling
`marker.line.cmin` and/or `marker.line.cmax` to be equidistant
to this point. Has an effect only if in `marker.line.color`is
set to a numerical array. Value should have the same units as
in `marker.line.color`. Has no effect when... | def cmid(self):
"""
Sets the mid-point of the color domain by scaling
`marker.line.cmin` and/or `marker.line.cmax` to be equidistant
to this point. Has an effect only if in `marker.line.color`is
set to a numerical array. Value should have the same units as
in `marker.line... | [
"def",
"cmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmid\"",
"]"
] | [
102,
4
] | [
118,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.cmin | (self) |
Sets the lower bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmax` must be set as well.
The 'cmin' property is a number and may be speci... |
Sets the lower bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmax` must be set as well.
The 'cmin' property is a number and may be speci... | def cmin(self):
"""
Sets the lower bound of the color domain. Has an effect only if
in `marker.line.color`is set to a numerical array. Value should
have the same units as in `marker.line.color` and if set,
`marker.line.cmax` must be set as well.
The 'cmin' property i... | [
"def",
"cmin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmin\"",
"]"
] | [
127,
4
] | [
141,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.color | (self) |
Sets themarker.linecolor. It accepts either a specific color or
an array of numbers that are mapped to the colorscale relative
to the max and min values of the array or relative to
`marker.line.cmin` and `marker.line.cmax` if set.
The 'color' property is a color and may be ... |
Sets themarker.linecolor. It accepts either a specific color or
an array of numbers that are mapped to the colorscale relative
to the max and min values of the array or relative to
`marker.line.cmin` and `marker.line.cmax` if set.
The 'color' property is a color and may be ... | def color(self):
"""
Sets themarker.linecolor. It accepts either a specific color or
an array of numbers that are mapped to the colorscale relative
to the max and min values of the array or relative to
`marker.line.cmin` and `marker.line.cmax` if set.
The 'color' pro... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
150,
4
] | [
206,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.coloraxis | (self) |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... | def coloraxis(self):
"""
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note t... | [
"def",
"coloraxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coloraxis\"",
"]"
] | [
215,
4
] | [
233,
32
] | python | en | ['en', 'error', 'th'] | False |
Line.colorscale | (self) |
Sets the colorscale. Has an effect only if in
`marker.line.color`is set to a numerical array. The colorscale
must be an array containing arrays mapping a normalized value
to an rgb, rgba, hex, hsl, hsv, or named color string. At
minimum, a mapping for the lowest (0) and highest ... |
Sets the colorscale. Has an effect only if in
`marker.line.color`is set to a numerical array. The colorscale
must be an array containing arrays mapping a normalized value
to an rgb, rgba, hex, hsl, hsv, or named color string. At
minimum, a mapping for the lowest (0) and highest ... | def colorscale(self):
"""
Sets the colorscale. Has an effect only if in
`marker.line.color`is set to a numerical array. The colorscale
must be an array containing arrays mapping a normalized value
to an rgb, rgba, hex, hsl, hsv, or named color string. At
minimum, a mappin... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
242,
4
] | [
287,
33
] | python | en | ['en', 'error', 'th'] | False |
Line.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
296,
4
] | [
307,
31
] | python | en | ['en', 'error', 'th'] | False |
Line.reversescale | (self) |
Reverses the color mapping if true. Has an effect only if in
`marker.line.color`is set to a numerical array. If true,
`marker.line.cmin` will correspond to the last color in the
array and `marker.line.cmax` will correspond to the first
color.
The 'reversescale' prop... |
Reverses the color mapping if true. Has an effect only if in
`marker.line.color`is set to a numerical array. If true,
`marker.line.cmin` will correspond to the last color in the
array and `marker.line.cmax` will correspond to the first
color.
The 'reversescale' prop... | def reversescale(self):
"""
Reverses the color mapping if true. Has an effect only if in
`marker.line.color`is set to a numerical array. If true,
`marker.line.cmin` will correspond to the last color in the
array and `marker.line.cmax` will correspond to the first
color.
... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
316,
4
] | [
331,
35
] | python | en | ['en', 'error', 'th'] | False |
Line.width | (self) |
Sets the width (in px) of the lines bounding the marker points.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|n... |
Sets the width (in px) of the lines bounding the marker points.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above | def width(self):
"""
Sets the width (in px) of the lines bounding the marker points.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
... | [
"def",
"width",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"width\"",
"]"
] | [
340,
4
] | [
352,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.widthsrc | (self) |
Sets the source reference on Chart Studio Cloud for width .
The 'widthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for width .
The 'widthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def widthsrc(self):
"""
Sets the source reference on Chart Studio Cloud for width .
The 'widthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["widthsrc"] | [
"def",
"widthsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"widthsrc\"",
"]"
] | [
361,
4
] | [
372,
31
] | python | en | ['en', 'error', 'th'] | False |
Line.__init__ | (
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
color=None,
coloraxis=None,
colorscale=None,
colorsrc=None,
reversescale=None,
width=None,
widthsrc=None,
**kwargs
... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scattergl.marker.Line`
autocolorscale
Determines whether the colorscale ... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scattergl.marker.Line`
autocolorscale
Determines whether the colorscale ... | def __init__(
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
color=None,
coloraxis=None,
colorscale=None,
colorsrc=None,
reversescale=None,
width=None,
widthsrc=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"autocolorscale",
"=",
"None",
",",
"cauto",
"=",
"None",
",",
"cmax",
"=",
"None",
",",
"cmid",
"=",
"None",
",",
"cmin",
"=",
"None",
",",
"color",
"=",
"None",
",",
"coloraxis",
"=",
... | [
464,
4
] | [
658,
34
] | python | en | ['en', 'error', 'th'] | False |
Transition.duration | (self) |
The duration of the transition, in milliseconds. If equal to
zero, updates are synchronous.
The 'duration' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The duration of the transition, in milliseconds. If equal to
zero, updates are synchronous.
The 'duration' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def duration(self):
"""
The duration of the transition, in milliseconds. If equal to
zero, updates are synchronous.
The 'duration' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
... | [
"def",
"duration",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"duration\"",
"]"
] | [
15,
4
] | [
27,
31
] | python | en | ['en', 'error', 'th'] | False |
Transition.easing | (self) |
The easing function used for the transition
The 'easing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',
'elastic', 'back', 'bounce', 'linear-in', 'quad-in'... |
The easing function used for the transition
The 'easing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',
'elastic', 'back', 'bounce', 'linear-in', 'quad-in'... | def easing(self):
"""
The easing function used for the transition
The 'easing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',
'elastic', 'back', 'bo... | [
"def",
"easing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"easing\"",
"]"
] | [
36,
4
] | [
56,
29
] | python | en | ['en', 'error', 'th'] | False |
Transition.ordering | (self) |
Determines whether the figure's layout or traces smoothly
transitions during updates that make both traces and layout
change.
The 'ordering' property is an enumeration that may be specified as:
- One of the following enumeration values:
['layout first', 't... |
Determines whether the figure's layout or traces smoothly
transitions during updates that make both traces and layout
change.
The 'ordering' property is an enumeration that may be specified as:
- One of the following enumeration values:
['layout first', 't... | def ordering(self):
"""
Determines whether the figure's layout or traces smoothly
transitions during updates that make both traces and layout
change.
The 'ordering' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | [
"def",
"ordering",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ordering\"",
"]"
] | [
65,
4
] | [
79,
31
] | python | en | ['en', 'error', 'th'] | False |
Transition.__init__ | (self, arg=None, duration=None, easing=None, ordering=None, **kwargs) |
Construct a new Transition object
Sets transition options used during Plotly.react updates.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.Transition`
... |
Construct a new Transition object
Sets transition options used during Plotly.react updates. | def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs):
"""
Construct a new Transition object
Sets transition options used during Plotly.react updates.
Parameters
----------
arg
dict of properties compatible with this const... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"duration",
"=",
"None",
",",
"easing",
"=",
"None",
",",
"ordering",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Transition",
",",
"self",
")",
".",
"__init__",
"(",
... | [
101,
4
] | [
175,
34
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
isr_p | (cls_score,
bbox_pred,
bbox_targets,
rois,
sampling_results,
loss_cls,
bbox_coder,
k=2,
bias=0,
num_class=80) | Importance-based Sample Reweighting (ISR_P), positive part.
Args:
cls_score (Tensor): Predicted classification scores.
bbox_pred (Tensor): Predicted bbox deltas.
bbox_targets (tuple[Tensor]): A tuple of bbox targets, the are
labels, label_weights, bbox_targets, bbox_weights, res... | Importance-based Sample Reweighting (ISR_P), positive part. | def isr_p(cls_score,
bbox_pred,
bbox_targets,
rois,
sampling_results,
loss_cls,
bbox_coder,
k=2,
bias=0,
num_class=80):
"""Importance-based Sample Reweighting (ISR_P), positive part.
Args:
cls_score (Tensor): Pred... | [
"def",
"isr_p",
"(",
"cls_score",
",",
"bbox_pred",
",",
"bbox_targets",
",",
"rois",
",",
"sampling_results",
",",
"loss_cls",
",",
"bbox_coder",
",",
"k",
"=",
"2",
",",
"bias",
"=",
"0",
",",
"num_class",
"=",
"80",
")",
":",
"labels",
",",
"label_w... | [
5,
0
] | [
115,
23
] | python | en | ['en', 'en', 'en'] | True |
carl_loss | (cls_score,
labels,
bbox_pred,
bbox_targets,
loss_bbox,
k=1,
bias=0.2,
avg_factor=None,
sigmoid=False,
num_class=80) | Classification-Aware Regression Loss (CARL).
Args:
cls_score (Tensor): Predicted classification scores.
labels (Tensor): Targets of classification.
bbox_pred (Tensor): Predicted bbox deltas.
bbox_targets (Tensor): Target of bbox regression.
loss_bbox (func): Regression loss ... | Classification-Aware Regression Loss (CARL). | def carl_loss(cls_score,
labels,
bbox_pred,
bbox_targets,
loss_bbox,
k=1,
bias=0.2,
avg_factor=None,
sigmoid=False,
num_class=80):
"""Classification-Aware Regression Loss (CARL).
Args:
... | [
"def",
"carl_loss",
"(",
"cls_score",
",",
"labels",
",",
"bbox_pred",
",",
"bbox_targets",
",",
"loss_bbox",
",",
"k",
"=",
"1",
",",
"bias",
"=",
"0.2",
",",
"avg_factor",
"=",
"None",
",",
"sigmoid",
"=",
"False",
",",
"num_class",
"=",
"80",
")",
... | [
118,
0
] | [
179,
42
] | python | en | ['en', 'it', 'en'] | True |
Textfont.color | (self) |
Sets the text font color of selected points.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,1... |
Sets the text font color of selected points.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,1... | def color(self):
"""
Sets the text font color of selected points.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hs... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
65,
28
] | python | en | ['en', 'error', 'th'] | False |
Textfont.__init__ | (self, arg=None, color=None, **kwargs) |
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scattercarpet.
selected.Textfont`
color
Sets the text font color of ... |
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scattercarpet.
selected.Textfont`
color
Sets the text font color of ... | def __init__(self, arg=None, color=None, **kwargs):
"""
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scattercarpet.
selected.T... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Textfont",
",",
"self",
")",
".",
"__init__",
"(",
"\"textfont\"",
")",
"if",
"\"_parent\"",
"in",
"kwargs",
":",
... | [
80,
4
] | [
137,
34
] | python | en | ['en', 'error', 'th'] | False |
Selected.marker | (self) |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict propertie... |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict propertie... | def marker(self):
"""
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
... | [
"def",
"marker",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"marker\"",
"]"
] | [
15,
4
] | [
36,
29
] | python | en | ['en', 'error', 'th'] | False |
Selected.textfont | (self) |
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict p... |
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict p... | def textfont(self):
"""
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatterternary.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... | [
"def",
"textfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textfont\"",
"]"
] | [
45,
4
] | [
62,
31
] | python | en | ['en', 'error', 'th'] | False |
Selected.__init__ | (self, arg=None, marker=None, textfont=None, **kwargs) |
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterternary.Selected`
marker
:class:`plotly.graph_objects.scatter... |
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterternary.Selected`
marker
:class:`plotly.graph_objects.scatter... | def __init__(self, arg=None, marker=None, textfont=None, **kwargs):
"""
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterte... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"marker",
"=",
"None",
",",
"textfont",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Selected",
",",
"self",
")",
".",
"__init__",
"(",
"\"selected\"",
")",
"if",
"\"_p... | [
81,
4
] | [
146,
34
] | python | en | ['en', 'error', 'th'] | False |
Title.font | (self) |
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`
... |
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`
... | def font(self):
"""
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.isosurface.c... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
15,
4
] | [
53,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.side | (self) |
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the following enumeration values... |
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the following enumeration values... | def side(self):
"""
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the f... | [
"def",
"side",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"side\"",
"]"
] | [
62,
4
] | [
76,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.text | (self) |
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A ... |
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A ... | def text(self):
"""
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
85,
4
] | [
99,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.__init__ | (self, arg=None, font=None, side=None, text=None, **kwargs) |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.isosurface.colorbar.Title`
font
Sets this color bar's title font. Note ... |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.isosurface.colorbar.Title`
font
Sets this color bar's title font. Note ... | def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):
"""
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.isosurf... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"font",
"=",
"None",
",",
"side",
"=",
"None",
",",
"text",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Title",
",",
"self",
")",
".",
"__init__",
"(",
"\"title\"",
... | [
126,
4
] | [
203,
34
] | python | en | ['en', 'error', 'th'] | False |
set_env | () |
Sets some enviroment variables to be available everywhere.
Checks if it is being launched from the development environment or not and set the env variable 'IS_DEV' and `PYTHONASYNCIODEBUG` accordingly.
|
Sets some enviroment variables to be available everywhere.
Checks if it is being launched from the development environment or not and set the env variable 'IS_DEV' and `PYTHONASYNCIODEBUG` accordingly. | def set_env():
"""
Sets some enviroment variables to be available everywhere.
Checks if it is being launched from the development environment or not and set the env variable 'IS_DEV' and `PYTHONASYNCIODEBUG` accordingly.
"""
old_cd = os.getcwd()
os.chdir(MAIN_DIR)
os.environ['LOG_CONFIG_RE... | [
"def",
"set_env",
"(",
")",
":",
"old_cd",
"=",
"os",
".",
"getcwd",
"(",
")",
"os",
".",
"chdir",
"(",
"MAIN_DIR",
")",
"os",
".",
"environ",
"[",
"'LOG_CONFIG_RETRIEVE'",
"]",
"=",
"'0'",
"os",
".",
"environ",
"[",
"'PYTHONASYNCIODEBUG'",
"]",
"=",
... | [
20,
0
] | [
49,
53
] | python | en | ['en', 'error', 'th'] | False |
strip_dict_params | (d1, d2, ignore=["uid"]) |
Helper function for assert_dict_equal
Nearly duplicate of assert_fig_equal in plotly/tests/test_optional/optional_utils.py
Removes `ignore` params from d1 and/or d2 if they exist
then returns stripped dictionaries
:param (list|tuple) ignore: sequence of key names as
strings that are remov... |
Helper function for assert_dict_equal | def strip_dict_params(d1, d2, ignore=["uid"]):
"""
Helper function for assert_dict_equal
Nearly duplicate of assert_fig_equal in plotly/tests/test_optional/optional_utils.py
Removes `ignore` params from d1 and/or d2 if they exist
then returns stripped dictionaries
:param (list|tuple) ignore: s... | [
"def",
"strip_dict_params",
"(",
"d1",
",",
"d2",
",",
"ignore",
"=",
"[",
"\"uid\"",
"]",
")",
":",
"# deep copy d1 and d2",
"if",
"\"to_plotly_json\"",
"in",
"dir",
"(",
"d1",
")",
":",
"d1_copy",
"=",
"copy",
".",
"deepcopy",
"(",
"d1",
".",
"to_plotl... | [
46,
0
] | [
75,
27
] | python | en | ['en', 'error', 'th'] | False |
TestAdminServerClient.get_application | (self) |
Override the get_app method to return your application.
|
Override the get_app method to return your application.
| async def get_application(self):
"""
Override the get_app method to return your application.
"""
return await self.get_admin_server().make_application() | [
"async",
"def",
"get_application",
"(",
"self",
")",
":",
"return",
"await",
"self",
".",
"get_admin_server",
"(",
")",
".",
"make_application",
"(",
")"
] | [
102,
4
] | [
106,
63
] | python | en | ['en', 'error', 'th'] | False |
TestAdminServerSecure.get_application | (self) |
Override the get_app method to return your application.
|
Override the get_app method to return your application.
| async def get_application(self):
"""
Override the get_app method to return your application.
"""
return await self.get_admin_server().make_application() | [
"async",
"def",
"get_application",
"(",
"self",
")",
":",
"return",
"await",
"self",
".",
"get_admin_server",
"(",
")",
".",
"make_application",
"(",
")"
] | [
170,
4
] | [
174,
63
] | python | en | ['en', 'error', 'th'] | False |
TestAdminServerWebhook.get_application | (self) |
Override the get_app method to return your application.
|
Override the get_app method to return your application.
| async def get_application(self):
"""
Override the get_app method to return your application.
"""
app = web.Application()
app.add_routes([web.post("/topic/{topic}/", self.receive_hook)])
return app | [
"async",
"def",
"get_application",
"(",
"self",
")",
":",
"app",
"=",
"web",
".",
"Application",
"(",
")",
"app",
".",
"add_routes",
"(",
"[",
"web",
".",
"post",
"(",
"\"/topic/{topic}/\"",
",",
"self",
".",
"receive_hook",
")",
"]",
")",
"return",
"a... | [
236,
4
] | [
242,
18
] | python | en | ['en', 'error', 'th'] | False |
chunks | (lst, n) | Yield successive n-sized chunks from lst. | Yield successive n-sized chunks from lst. | def chunks(lst, n):
"""Yield successive n-sized chunks from lst."""
for i in range(0, len(lst), n):
yield lst[i:i + n] | [
"def",
"chunks",
"(",
"lst",
",",
"n",
")",
":",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"len",
"(",
"lst",
")",
",",
"n",
")",
":",
"yield",
"lst",
"[",
"i",
":",
"i",
"+",
"n",
"]"
] | [
62,
0
] | [
65,
26
] | python | en | ['en', 'en', 'en'] | True |
format_by_line_length | (possible_votes, max_length=50) |
Note: I've tried to format with a nice aligned table but it's not
possible to get it right (unless you hardcode it maybe)
because the font used in the game does not have consistent characters (varying width)
|
Note: I've tried to format with a nice aligned table but it's not
possible to get it right (unless you hardcode it maybe)
because the font used in the game does not have consistent characters (varying width)
| def format_by_line_length(possible_votes, max_length=50):
"""
Note: I've tried to format with a nice aligned table but it's not
possible to get it right (unless you hardcode it maybe)
because the font used in the game does not have consistent characters (varying width)
"""
lines = []
line = ... | [
"def",
"format_by_line_length",
"(",
"possible_votes",
",",
"max_length",
"=",
"50",
")",
":",
"lines",
"=",
"[",
"]",
"line",
"=",
"\"\"",
"for",
"i",
"in",
"possible_votes",
":",
"line",
"+=",
"i",
"+",
"\" \"",
"if",
"len",
"(",
"line",
")",
">",
... | [
85,
0
] | [
99,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an ins... |
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute.
Parameters
----------
ar... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
escape | (s) |
Replace potential special characters with escaped version.
For example, newline => \\n and tab => \\t
|
Replace potential special characters with escaped version. | def escape(s):
"""
Replace potential special characters with escaped version.
For example, newline => \\n and tab => \\t
"""
return s.replace('\n', '\\n').replace('\t', '\\t').replace('\r', '\\r') | [
"def",
"escape",
"(",
"s",
")",
":",
"return",
"s",
".",
"replace",
"(",
"'\\n'",
",",
"'\\\\n'",
")",
".",
"replace",
"(",
"'\\t'",
",",
"'\\\\t'",
")",
".",
"replace",
"(",
"'\\r'",
",",
"'\\\\r'",
")"
] | [
62,
0
] | [
68,
75
] | python | en | ['en', 'error', 'th'] | False |
unescape | (s) |
Revert escaped characters back to their special version.
For example, \\n => newline and \\t => tab
|
Revert escaped characters back to their special version. | def unescape(s):
"""
Revert escaped characters back to their special version.
For example, \\n => newline and \\t => tab
"""
return s.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r') | [
"def",
"unescape",
"(",
"s",
")",
":",
"return",
"s",
".",
"replace",
"(",
"'\\\\n'",
",",
"'\\n'",
")",
".",
"replace",
"(",
"'\\\\t'",
",",
"'\\t'",
")",
".",
"replace",
"(",
"'\\\\r'",
",",
"'\\r'",
")"
] | [
71,
0
] | [
77,
75
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.add_to_ques_dict | (self, tokens) |
Builds dictionary from the list of provided tokens.
Only adds words contained in self.embedding_words, if not None.
|
Builds dictionary from the list of provided tokens. | def add_to_ques_dict(self, tokens):
"""
Builds dictionary from the list of provided tokens.
Only adds words contained in self.embedding_words, if not None.
"""
for token in tokens:
self.freq[token] += 1
if token not in self.tok2ind:
index ... | [
"def",
"add_to_ques_dict",
"(",
"self",
",",
"tokens",
")",
":",
"for",
"token",
"in",
"tokens",
":",
"self",
".",
"freq",
"[",
"token",
"]",
"+=",
"1",
"if",
"token",
"not",
"in",
"self",
".",
"tok2ind",
":",
"index",
"=",
"len",
"(",
"self",
".",... | [
160,
4
] | [
171,
43
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.add_to_ans_dict | (self, token) |
Builds dictionary from the list of provided tokens.
Only adds words contained in self.embedding_words, if not None.
|
Builds dictionary from the list of provided tokens. | def add_to_ans_dict(self, token):
"""
Builds dictionary from the list of provided tokens.
Only adds words contained in self.embedding_words, if not None.
"""
self.ansfreq[token] += 1
if token not in self.ans2ind:
index = len(self.ans2ind)
self.ans... | [
"def",
"add_to_ans_dict",
"(",
"self",
",",
"token",
")",
":",
"self",
".",
"ansfreq",
"[",
"token",
"]",
"+=",
"1",
"if",
"token",
"not",
"in",
"self",
".",
"ans2ind",
":",
"index",
"=",
"len",
"(",
"self",
".",
"ans2ind",
")",
"self",
".",
"ans2i... | [
173,
4
] | [
183,
39
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.act | (self) |
Add any words passed in the 'text' field of the observation to this dictionary.
|
Add any words passed in the 'text' field of the observation to this dictionary.
| def act(self):
"""
Add any words passed in the 'text' field of the observation to this dictionary.
"""
mc_label = self.observation.get('mc_label', self.observation.get('labels', []))
for text in mc_label:
self.ansfreq[text] += 1
self.ans2ques[text].append(... | [
"def",
"act",
"(",
"self",
")",
":",
"mc_label",
"=",
"self",
".",
"observation",
".",
"get",
"(",
"'mc_label'",
",",
"self",
".",
"observation",
".",
"get",
"(",
"'labels'",
",",
"[",
"]",
")",
")",
"for",
"text",
"in",
"mc_label",
":",
"self",
".... | [
221,
4
] | [
229,
35
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.load | (self, filename) |
Load pre-existing dictionary in 'token[<TAB>count]' format.
Initialize counts from other dictionary, or 0 if they aren't included.
|
Load pre-existing dictionary in 'token[<TAB>count]' format. | def load(self, filename):
"""
Load pre-existing dictionary in 'token[<TAB>count]' format.
Initialize counts from other dictionary, or 0 if they aren't included.
"""
print('Dictionary: loading dictionary from {}'.format(filename))
with PathManager.open(filename) as read:
... | [
"def",
"load",
"(",
"self",
",",
"filename",
")",
":",
"print",
"(",
"'Dictionary: loading dictionary from {}'",
".",
"format",
"(",
"filename",
")",
")",
"with",
"PathManager",
".",
"open",
"(",
"filename",
")",
"as",
"read",
":",
"for",
"line",
"in",
"re... | [
276,
4
] | [
306,
60
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.save | (self, filename=None, append=False, sort=True) |
Save dictionary to file. Format is 'token<TAB>count' for every token in the
dictionary, sorted by count with the most frequent words first.
If ``append`` (default ``False``) is set to ``True``, appends instead
of overwriting.
If ``sort`` (default ``True``), then first sort the... |
Save dictionary to file. Format is 'token<TAB>count' for every token in the
dictionary, sorted by count with the most frequent words first. | def save(self, filename=None, append=False, sort=True):
"""
Save dictionary to file. Format is 'token<TAB>count' for every token in the
dictionary, sorted by count with the most frequent words first.
If ``append`` (default ``False``) is set to ``True``, appends instead
of overwr... | [
"def",
"save",
"(",
"self",
",",
"filename",
"=",
"None",
",",
"append",
"=",
"False",
",",
"sort",
"=",
"True",
")",
":",
"cw",
"=",
"sorted",
"(",
"[",
"(",
"count",
",",
"w",
")",
"for",
"w",
",",
"count",
"in",
"self",
".",
"ansfreq",
".",
... | [
308,
4
] | [
346,
78
] | python | en | ['en', 'error', 'th'] | False |
VqaDictionaryAgent.shutdown | (self) |
Save on shutdown if ``save_path`` is set.
|
Save on shutdown if ``save_path`` is set.
| def shutdown(self):
"""
Save on shutdown if ``save_path`` is set.
"""
if hasattr(self, 'save_path'):
self.save(self.save_path) | [
"def",
"shutdown",
"(",
"self",
")",
":",
"if",
"hasattr",
"(",
"self",
",",
"'save_path'",
")",
":",
"self",
".",
"save",
"(",
"self",
".",
"save_path",
")"
] | [
348,
4
] | [
353,
37
] | python | en | ['en', 'error', 'th'] | False |
OeTeacher.num_examples | (self) |
Number of examples in VQA-v1.
|
Number of examples in VQA-v1.
| def num_examples(self):
"""
Number of examples in VQA-v1.
"""
return len(self.ques['questions']) | [
"def",
"num_examples",
"(",
"self",
")",
":",
"return",
"len",
"(",
"self",
".",
"ques",
"[",
"'questions'",
"]",
")"
] | [
383,
4
] | [
387,
42
] | python | en | ['en', 'error', 'th'] | False |
OeTeacher.next_example | (self) |
Returns the next example from this dataset after starting to queue up the next
example.
|
Returns the next example from this dataset after starting to queue up the next
example.
| def next_example(self):
"""
Returns the next example from this dataset after starting to queue up the next
example.
"""
ready = None
# pull up the currently queued example
if self.example is not None:
if self.image_mode != 'no_image_model' and 'image_i... | [
"def",
"next_example",
"(",
"self",
")",
":",
"ready",
"=",
"None",
"# pull up the currently queued example",
"if",
"self",
".",
"example",
"is",
"not",
"None",
":",
"if",
"self",
".",
"image_mode",
"!=",
"'no_image_model'",
"and",
"'image_id'",
"in",
"self",
... | [
412,
4
] | [
435,
24
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent.add_cmdline_args | (
cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
) |
Add CLI args.
|
Add CLI args.
| def add_cmdline_args(
cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
) -> ParlaiParser:
"""
Add CLI args.
"""
TransformerClassifierAgent.add_cmdline_args(parser, partial_opt=partial_opt)
agent = parser.add_argument_group('ClassifierOnGenerator Arguments'... | [
"def",
"add_cmdline_args",
"(",
"cls",
",",
"parser",
":",
"ParlaiParser",
",",
"partial_opt",
":",
"Optional",
"[",
"Opt",
"]",
"=",
"None",
")",
"->",
"ParlaiParser",
":",
"TransformerClassifierAgent",
".",
"add_cmdline_args",
"(",
"parser",
",",
"partial_opt"... | [
38,
4
] | [
52,
20
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent.__init__ | (self, opt, shared=None) |
Set up model.
|
Set up model.
| def __init__(self, opt, shared=None):
"""
Set up model.
"""
# set up classes
if opt.get('classes') is None and opt.get('classes_from_file') is None:
raise RuntimeError(
'Must specify --classes or --classes-from-file argument.'
)
if... | [
"def",
"__init__",
"(",
"self",
",",
"opt",
",",
"shared",
"=",
"None",
")",
":",
"# set up classes",
"if",
"opt",
".",
"get",
"(",
"'classes'",
")",
"is",
"None",
"and",
"opt",
".",
"get",
"(",
"'classes_from_file'",
")",
"is",
"None",
":",
"raise",
... | [
54,
4
] | [
97,
43
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent.build_model | (self, states=None) |
Build and return model.
|
Build and return model.
| def build_model(self, states=None):
"""
Build and return model.
"""
model = ClassifierOnGeneratorModel(
self.opt, self.dict, num_classes=len(self.class_list)
)
return model | [
"def",
"build_model",
"(",
"self",
",",
"states",
"=",
"None",
")",
":",
"model",
"=",
"ClassifierOnGeneratorModel",
"(",
"self",
".",
"opt",
",",
"self",
".",
"dict",
",",
"num_classes",
"=",
"len",
"(",
"self",
".",
"class_list",
")",
")",
"return",
... | [
99,
4
] | [
106,
20
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent.load_state_dict | (self, state_dict) |
Override to add in the classifier head if it doesn't exist.
|
Override to add in the classifier head if it doesn't exist.
| def load_state_dict(self, state_dict):
"""
Override to add in the classifier head if it doesn't exist.
"""
for tensor in ['weight', 'bias']:
key = f'classifier_head.{tensor}'
if key not in state_dict:
state_dict[key] = getattr(self.model.classifier... | [
"def",
"load_state_dict",
"(",
"self",
",",
"state_dict",
")",
":",
"for",
"tensor",
"in",
"[",
"'weight'",
",",
"'bias'",
"]",
":",
"key",
"=",
"f'classifier_head.{tensor}'",
"if",
"key",
"not",
"in",
"state_dict",
":",
"state_dict",
"[",
"key",
"]",
"=",... | [
116,
4
] | [
124,
43
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent.share | (self) |
Share model parameters.
|
Share model parameters.
| def share(self):
"""
Share model parameters.
"""
shared = super().share()
shared['class_dict'] = self.class_dict
shared['class_list'] = self.class_list
shared['class_weights'] = self.class_weights
return shared | [
"def",
"share",
"(",
"self",
")",
":",
"shared",
"=",
"super",
"(",
")",
".",
"share",
"(",
")",
"shared",
"[",
"'class_dict'",
"]",
"=",
"self",
".",
"class_dict",
"shared",
"[",
"'class_list'",
"]",
"=",
"self",
".",
"class_list",
"shared",
"[",
"'... | [
126,
4
] | [
134,
21
] | python | en | ['en', 'error', 'th'] | False |
ClassifierAgent._get_label_tensor | (self, batch) |
Obtain the correct class labels.
Raises a `KeyError` if one of the labels is not in the class list.
|
Obtain the correct class labels. | def _get_label_tensor(self, batch):
"""
Obtain the correct class labels.
Raises a `KeyError` if one of the labels is not in the class list.
"""
labels = batch.labels
try:
labels_indices_list = [self.class_dict[label] for label in labels]
except KeyErr... | [
"def",
"_get_label_tensor",
"(",
"self",
",",
"batch",
")",
":",
"labels",
"=",
"batch",
".",
"labels",
"try",
":",
"labels_indices_list",
"=",
"[",
"self",
".",
"class_dict",
"[",
"label",
"]",
"for",
"label",
"in",
"labels",
"]",
"except",
"KeyError",
... | [
136,
4
] | [
152,
28
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.