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
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.scattergl.mark er.colorbar.Title` font Sets this color bar's title font...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergl.mark er.colorbar.Title` font Sets this color bar's title font...
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.scattergl.mark ...
[ "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
CredentialProposalHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for credential proposals. Args: context: proposal context responder: responder callback
Message handler logic for credential proposals.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for credential proposals. Args: context: proposal context responder: responder callback """ self._logger.debug("CredentialProposalHandler called with con...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"CredentialProposalHandler called with context %s\"", ",", "context", ")", "assert", "isins...
[ 17, 4 ]
[ 48, 64 ]
python
en
['en', 'error', 'th']
False
Surface.autocolorscale
(self)
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are a...
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are a...
def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to wheth...
[ "def", "autocolorscale", "(", "self", ")", ":", "return", "self", "[", "\"autocolorscale\"", "]" ]
[ 68, 4 ]
[ 84, 37 ]
python
en
['en', 'error', 'th']
False
Surface.cauto
(self)
Determines whether or not the color domain is computed with respect to the input data (here z or surfacecolor) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user. The 'cauto' property must be specified as a bool (e...
Determines whether or not the color domain is computed with respect to the input data (here z or surfacecolor) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user. The 'cauto' property must be specified as a bool (e...
def cauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here z or surfacecolor) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user. The 'cauto' property must be sp...
[ "def", "cauto", "(", "self", ")", ":", "return", "self", "[", "\"cauto\"", "]" ]
[ 93, 4 ]
[ 107, 28 ]
python
en
['en', 'error', 'th']
False
Surface.cmax
(self)
Sets the upper bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmin` must be set as well. The 'cmax' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the upper bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmin` must be set as well. The 'cmax' property is a number and may be specified as: - An int or float
def cmax(self): """ Sets the upper bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmin` must be set as well. The 'cmax' property is a number and may be specified as: - An int or float Returns ------- ...
[ "def", "cmax", "(", "self", ")", ":", "return", "self", "[", "\"cmax\"", "]" ]
[ 116, 4 ]
[ 129, 27 ]
python
en
['en', 'error', 'th']
False
Surface.cmid
(self)
Sets the mid-point of the color domain by scaling `cmin` and/or `cmax` to be equidistant to this point. Value should have the same units as z or surfacecolor. Has no effect when `cauto` is `false`. The 'cmid' property is a number and may be specified as: - An int ...
Sets the mid-point of the color domain by scaling `cmin` and/or `cmax` to be equidistant to this point. Value should have the same units as z or surfacecolor. Has no effect when `cauto` is `false`. The 'cmid' property is a number and may be specified as: - An int ...
def cmid(self): """ Sets the mid-point of the color domain by scaling `cmin` and/or `cmax` to be equidistant to this point. Value should have the same units as z or surfacecolor. Has no effect when `cauto` is `false`. The 'cmid' property is a number and may be specif...
[ "def", "cmid", "(", "self", ")", ":", "return", "self", "[", "\"cmid\"", "]" ]
[ 138, 4 ]
[ 152, 27 ]
python
en
['en', 'error', 'th']
False
Surface.cmin
(self)
Sets the lower bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmax` must be set as well. The 'cmin' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the lower bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmax` must be set as well. The 'cmin' property is a number and may be specified as: - An int or float
def cmin(self): """ Sets the lower bound of the color domain. Value should have the same units as z or surfacecolor and if set, `cmax` must be set as well. The 'cmin' property is a number and may be specified as: - An int or float Returns ------- ...
[ "def", "cmin", "(", "self", ")", ":", "return", "self", "[", "\"cmin\"", "]" ]
[ 161, 4 ]
[ 174, 27 ]
python
en
['en', 'error', 'th']
False
Surface.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\"", "]" ]
[ 183, 4 ]
[ 201, 32 ]
python
en
['en', 'error', 'th']
False
Surface.colorbar
(self)
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.surface.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: ...
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.surface.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: ...
def colorbar(self): """ The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.surface.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor S...
[ "def", "colorbar", "(", "self", ")", ":", "return", "self", "[", "\"colorbar\"", "]" ]
[ 210, 4 ]
[ 436, 31 ]
python
en
['en', 'error', 'th']
False
Surface.colorscale
(self)
Sets the colorscale. 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 (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255...
Sets the colorscale. 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 (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255...
def colorscale(self): """ Sets the colorscale. 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 (1) values are required. For example, `[...
[ "def", "colorscale", "(", "self", ")", ":", "return", "self", "[", "\"colorscale\"", "]" ]
[ 445, 4 ]
[ 488, 33 ]
python
en
['en', 'error', 'th']
False
Surface.connectgaps
(self)
Determines whether or not gaps (i.e. {nan} or missing values) in the `z` data are filled in. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not gaps (i.e. {nan} or missing values) in the `z` data are filled in. The 'connectgaps' property must be specified as a bool (either True, or False)
def connectgaps(self): """ Determines whether or not gaps (i.e. {nan} or missing values) in the `z` data are filled in. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool """ return sel...
[ "def", "connectgaps", "(", "self", ")", ":", "return", "self", "[", "\"connectgaps\"", "]" ]
[ 497, 4 ]
[ 509, 34 ]
python
en
['en', 'error', 'th']
False
Surface.contours
(self)
The 'contours' property is an instance of Contours that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Contours` - A dict of string/value properties that will be passed to the Contours constructor Supported dict properties: ...
The 'contours' property is an instance of Contours that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Contours` - A dict of string/value properties that will be passed to the Contours constructor Supported dict properties: ...
def contours(self): """ The 'contours' property is an instance of Contours that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Contours` - A dict of string/value properties that will be passed to the Contours constructor S...
[ "def", "contours", "(", "self", ")", ":", "return", "self", "[", "\"contours\"", "]" ]
[ 518, 4 ]
[ 542, 31 ]
python
en
['en', 'error', 'th']
False
Surface.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 551, 4 ]
[ 565, 33 ]
python
en
['en', 'error', 'th']
False
Surface.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' 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 customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 574, 4 ]
[ 586, 36 ]
python
en
['en', 'error', 'th']
False
Surface.hidesurface
(self)
Determines whether or not a surface is drawn. For example, set `hidesurface` to False `contours.x.show` to True and `contours.y.show` to True to draw a wire frame plot. The 'hidesurface' property must be specified as a bool (either True, or False) Returns -...
Determines whether or not a surface is drawn. For example, set `hidesurface` to False `contours.x.show` to True and `contours.y.show` to True to draw a wire frame plot. The 'hidesurface' property must be specified as a bool (either True, or False)
def hidesurface(self): """ Determines whether or not a surface is drawn. For example, set `hidesurface` to False `contours.x.show` to True and `contours.y.show` to True to draw a wire frame plot. The 'hidesurface' property must be specified as a bool (either True, or...
[ "def", "hidesurface", "(", "self", ")", ":", "return", "self", "[", "\"hidesurface\"", "]" ]
[ 595, 4 ]
[ 608, 34 ]
python
en
['en', 'error', 'th']
False
Surface.hoverinfo
(self)
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
def hoverinfo(self): """ Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified ...
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 617, 4 ]
[ 634, 32 ]
python
en
['en', 'error', 'th']
False
Surface.hoverinfosrc
(self)
Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' 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 hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hoverinfosrc(self): """ Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverin...
[ "def", "hoverinfosrc", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfosrc\"", "]" ]
[ 643, 4 ]
[ 655, 35 ]
python
en
['en', 'error', 'th']
False
Surface.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict propertie...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict propertie...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 664, 4 ]
[ 714, 33 ]
python
en
['en', 'error', 'th']
False
Surface.hovertemplate
(self)
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
def hovertemplate(self): """ Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 723, 4 ]
[ 755, 36 ]
python
en
['en', 'error', 'th']
False
Surface.hovertemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' 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 hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 764, 4 ]
[ 776, 39 ]
python
en
['en', 'error', 'th']
False
Surface.hovertext
(self)
Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray
Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above
def hovertext(self): """ Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- ...
[ "def", "hovertext", "(", "self", ")", ":", "return", "self", "[", "\"hovertext\"", "]" ]
[ 785, 4 ]
[ 798, 32 ]
python
en
['en', 'error', 'th']
False
Surface.hovertextsrc
(self)
Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' 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 hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertextsrc(self): """ Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverte...
[ "def", "hovertextsrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertextsrc\"", "]" ]
[ 807, 4 ]
[ 819, 35 ]
python
en
['en', 'error', 'th']
False
Surface.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 828, 4 ]
[ 841, 26 ]
python
en
['en', 'error', 'th']
False
Surface.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' 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 ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 850, 4 ]
[ 861, 29 ]
python
en
['en', 'error', 'th']
False
Surface.legendgroup
(self)
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string R...
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string
def legendgroup(self): """ Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will b...
[ "def", "legendgroup", "(", "self", ")", ":", "return", "self", "[", "\"legendgroup\"", "]" ]
[ 870, 4 ]
[ 884, 34 ]
python
en
['en', 'error', 'th']
False
Surface.lighting
(self)
The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor Supported dict properties: ...
The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor Supported dict properties: ...
def lighting(self): """ The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor S...
[ "def", "lighting", "(", "self", ")", ":", "return", "self", "[", "\"lighting\"", "]" ]
[ 893, 4 ]
[ 926, 31 ]
python
en
['en', 'error', 'th']
False
Surface.lightposition
(self)
The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition constructor Supported di...
The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition constructor Supported di...
def lightposition(self): """ The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition const...
[ "def", "lightposition", "(", "self", ")", ":", "return", "self", "[", "\"lightposition\"", "]" ]
[ 935, 4 ]
[ 959, 36 ]
python
en
['en', 'error', 'th']
False
Surface.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 968, 4 ]
[ 987, 27 ]
python
en
['en', 'error', 'th']
False
Surface.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' 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 meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 996, 4 ]
[ 1007, 30 ]
python
en
['en', 'error', 'th']
False
Surface.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 1016, 4 ]
[ 1029, 27 ]
python
en
['en', 'error', 'th']
False
Surface.opacity
(self)
Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the we...
Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the we...
def opacity(self): """ Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly ...
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 1038, 4 ]
[ 1054, 30 ]
python
en
['en', 'error', 'th']
False
Surface.opacityscale
(self)
Sets the opacityscale. The opacityscale must be an array containing arrays mapping a normalized value to an opacity value. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values wou...
Sets the opacityscale. The opacityscale must be an array containing arrays mapping a normalized value to an opacity value. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values wou...
def opacityscale(self): """ Sets the opacityscale. The opacityscale must be an array containing arrays mapping a normalized value to an opacity value. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 1], [0.5, 0.2], [1, 1]]`...
[ "def", "opacityscale", "(", "self", ")", ":", "return", "self", "[", "\"opacityscale\"", "]" ]
[ 1063, 4 ]
[ 1081, 35 ]
python
en
['en', 'error', 'th']
False
Surface.reversescale
(self)
Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Returns ------- bool ...
Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False)
def reversescale(self): """ Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Retu...
[ "def", "reversescale", "(", "self", ")", ":", "return", "self", "[", "\"reversescale\"", "]" ]
[ 1090, 4 ]
[ 1103, 35 ]
python
en
['en', 'error', 'th']
False
Surface.scene
(self)
Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' property is an identifier of a p...
Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' property is an identifier of a p...
def scene(self): """ Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' prop...
[ "def", "scene", "(", "self", ")", ":", "return", "self", "[", "\"scene\"", "]" ]
[ 1112, 4 ]
[ 1128, 28 ]
python
en
['en', 'error', 'th']
False
Surface.showlegend
(self)
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False)
def showlegend(self): """ Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showle...
[ "def", "showlegend", "(", "self", ")", ":", "return", "self", "[", "\"showlegend\"", "]" ]
[ 1137, 4 ]
[ 1149, 33 ]
python
en
['en', 'error', 'th']
False
Surface.showscale
(self)
Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False)
def showscale(self): """ Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showscale"]
[ "def", "showscale", "(", "self", ")", ":", "return", "self", "[", "\"showscale\"", "]" ]
[ 1158, 4 ]
[ 1170, 32 ]
python
en
['en', 'error', 'th']
False
Surface.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.surface.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported d...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 1179, 4 ]
[ 1203, 29 ]
python
en
['en', 'error', 'th']
False
Surface.surfacecolor
(self)
Sets the surface color values, used for setting a color scale independent of `z`. The 'surfacecolor' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the surface color values, used for setting a color scale independent of `z`. The 'surfacecolor' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def surfacecolor(self): """ Sets the surface color values, used for setting a color scale independent of `z`. The 'surfacecolor' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray ...
[ "def", "surfacecolor", "(", "self", ")", ":", "return", "self", "[", "\"surfacecolor\"", "]" ]
[ 1212, 4 ]
[ 1224, 35 ]
python
en
['en', 'error', 'th']
False
Surface.surfacecolorsrc
(self)
Sets the source reference on Chart Studio Cloud for surfacecolor . The 'surfacecolorsrc' 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 surfacecolor . The 'surfacecolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def surfacecolorsrc(self): """ Sets the source reference on Chart Studio Cloud for surfacecolor . The 'surfacecolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "surfacecolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"surfacecolorsrc\"", "]" ]
[ 1233, 4 ]
[ 1245, 38 ]
python
en
['en', 'error', 'th']
False
Surface.text
(self)
Sets the text elements associated with each z value. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string - A number that wil...
Sets the text elements associated with each z value. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string - A number that wil...
def text(self): """ Sets the text elements associated with each z value. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 1254, 4 ]
[ 1269, 27 ]
python
en
['en', 'error', 'th']
False
Surface.textsrc
(self)
Sets the source reference on Chart Studio Cloud for text . The 'textsrc' 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 text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textsrc(self): """ Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["textsrc"]
[ "def", "textsrc", "(", "self", ")", ":", "return", "self", "[", "\"textsrc\"", "]" ]
[ 1278, 4 ]
[ 1289, 30 ]
python
en
['en', 'error', 'th']
False
Surface.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 1298, 4 ]
[ 1311, 26 ]
python
en
['en', 'error', 'th']
False
Surface.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 1320, 4 ]
[ 1344, 33 ]
python
en
['en', 'error', 'th']
False
Surface.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 1353, 4 ]
[ 1367, 30 ]
python
en
['en', 'error', 'th']
False
Surface.x
(self)
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def x(self): """ Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1376, 4 ]
[ 1387, 24 ]
python
en
['en', 'error', 'th']
False
Surface.xcalendar
(self)
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def xcalendar(self): """ Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "xcalendar", "(", "self", ")", ":", "return", "self", "[", "\"xcalendar\"", "]" ]
[ 1396, 4 ]
[ 1411, 32 ]
python
en
['en', 'error', 'th']
False
Surface.xsrc
(self)
Sets the source reference on Chart Studio Cloud for x . The 'xsrc' 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 x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def xsrc(self): """ Sets the source reference on Chart Studio Cloud for x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["xsrc"]
[ "def", "xsrc", "(", "self", ")", ":", "return", "self", "[", "\"xsrc\"", "]" ]
[ 1420, 4 ]
[ 1431, 27 ]
python
en
['en', 'error', 'th']
False
Surface.y
(self)
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def y(self): """ Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1440, 4 ]
[ 1451, 24 ]
python
en
['en', 'error', 'th']
False
Surface.ycalendar
(self)
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def ycalendar(self): """ Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "ycalendar", "(", "self", ")", ":", "return", "self", "[", "\"ycalendar\"", "]" ]
[ 1460, 4 ]
[ 1475, 32 ]
python
en
['en', 'error', 'th']
False
Surface.ysrc
(self)
Sets the source reference on Chart Studio Cloud for y . The 'ysrc' 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 y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ysrc(self): """ Sets the source reference on Chart Studio Cloud for y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ysrc"]
[ "def", "ysrc", "(", "self", ")", ":", "return", "self", "[", "\"ysrc\"", "]" ]
[ 1484, 4 ]
[ 1495, 27 ]
python
en
['en', 'error', 'th']
False
Surface.z
(self)
Sets the z coordinates. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the z coordinates. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def z(self): """ Sets the z coordinates. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 1504, 4 ]
[ 1515, 24 ]
python
en
['en', 'error', 'th']
False
Surface.zcalendar
(self)
Sets the calendar system to use with `z` date data. The 'zcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `z` date data. The 'zcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def zcalendar(self): """ Sets the calendar system to use with `z` date data. The 'zcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "zcalendar", "(", "self", ")", ":", "return", "self", "[", "\"zcalendar\"", "]" ]
[ 1524, 4 ]
[ 1539, 32 ]
python
en
['en', 'error', 'th']
False
Surface.zsrc
(self)
Sets the source reference on Chart Studio Cloud for z . The 'zsrc' 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 z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def zsrc(self): """ Sets the source reference on Chart Studio Cloud for z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["zsrc"]
[ "def", "zsrc", "(", "self", ")", ":", "return", "self", "[", "\"zsrc\"", "]" ]
[ 1548, 4 ]
[ 1559, 27 ]
python
en
['en', 'error', 'th']
False
Surface.__init__
( self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, contours=None, customdata=None, customdatasrc=None, ...
Construct a new Surface object The data the describes the coordinates of the surface is set in `z`. Data in `z` should be a 2D list. Coordinates in `x` and `y` can either be 1D lists or 2D lists (e.g. to graph parametric surfaces). If not provided in `x` and `y`, the x ...
Construct a new Surface object The data the describes the coordinates of the surface is set in `z`. Data in `z` should be a 2D list. Coordinates in `x` and `y` can either be 1D lists or 2D lists (e.g. to graph parametric surfaces). If not provided in `x` and `y`, the x ...
def __init__( self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, contours=None, customdata=None, customdatasrc=...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autocolorscale", "=", "None", ",", "cauto", "=", "None", ",", "cmax", "=", "None", ",", "cmid", "=", "None", ",", "cmin", "=", "None", ",", "coloraxis", "=", "None", ",", "colorbar", "=...
[ 1822, 4 ]
[ 2391, 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 the global font. Note that fonts used in traces and other layout components inherit from the global font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :c...
Construct a new Font object Sets the global font. Note that fonts used in traces and other layout components inherit from the global font.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets the global font. Note that fonts used in traces and other layout components inherit from the global font. Parameters ---------- arg ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"",...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
build
(cfg, registry, default_args=None)
Build a module. Args: cfg (dict, list[dict]): The config of modules, is is either a dict or a list of configs. registry (:obj:`Registry`): A registry the module belongs to. default_args (dict, optional): Default arguments to build the module. Defaults to None. R...
Build a module.
def build(cfg, registry, default_args=None): """Build a module. Args: cfg (dict, list[dict]): The config of modules, is is either a dict or a list of configs. registry (:obj:`Registry`): A registry the module belongs to. default_args (dict, optional): Default arguments to bu...
[ "def", "build", "(", "cfg", ",", "registry", ",", "default_args", "=", "None", ")", ":", "if", "isinstance", "(", "cfg", ",", "list", ")", ":", "modules", "=", "[", "build_from_cfg", "(", "cfg_", ",", "registry", ",", "default_args", ")", "for", "cfg_"...
[ 12, 0 ]
[ 31, 58 ]
python
en
['en', 'ro', 'en']
True
build_backbone
(cfg)
Build backbone.
Build backbone.
def build_backbone(cfg): """Build backbone.""" return build(cfg, BACKBONES)
[ "def", "build_backbone", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "BACKBONES", ")" ]
[ 34, 0 ]
[ 36, 32 ]
python
en
['en', 'tr', 'en']
False
build_neck
(cfg)
Build neck.
Build neck.
def build_neck(cfg): """Build neck.""" return build(cfg, NECKS)
[ "def", "build_neck", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "NECKS", ")" ]
[ 39, 0 ]
[ 41, 28 ]
python
en
['en', 'sr', 'en']
False
build_roi_extractor
(cfg)
Build roi extractor.
Build roi extractor.
def build_roi_extractor(cfg): """Build roi extractor.""" return build(cfg, ROI_EXTRACTORS)
[ "def", "build_roi_extractor", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "ROI_EXTRACTORS", ")" ]
[ 44, 0 ]
[ 46, 37 ]
python
en
['fr', 'sr', 'en']
False
build_shared_head
(cfg)
Build shared head.
Build shared head.
def build_shared_head(cfg): """Build shared head.""" return build(cfg, SHARED_HEADS)
[ "def", "build_shared_head", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "SHARED_HEADS", ")" ]
[ 49, 0 ]
[ 51, 35 ]
python
en
['en', 'ga', 'en']
True
build_head
(cfg)
Build head.
Build head.
def build_head(cfg): """Build head.""" return build(cfg, HEADS)
[ "def", "build_head", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "HEADS", ")" ]
[ 54, 0 ]
[ 56, 28 ]
python
en
['en', 'es', 'en']
False
build_loss
(cfg)
Build loss.
Build loss.
def build_loss(cfg): """Build loss.""" return build(cfg, LOSSES)
[ "def", "build_loss", "(", "cfg", ")", ":", "return", "build", "(", "cfg", ",", "LOSSES", ")" ]
[ 59, 0 ]
[ 61, 29 ]
python
en
['en', 'fil', 'en']
False
build_detector
(cfg, train_cfg=None, test_cfg=None)
Build detector.
Build detector.
def build_detector(cfg, train_cfg=None, test_cfg=None): """Build detector.""" return build(cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
[ "def", "build_detector", "(", "cfg", ",", "train_cfg", "=", "None", ",", "test_cfg", "=", "None", ")", ":", "return", "build", "(", "cfg", ",", "DETECTORS", ",", "dict", "(", "train_cfg", "=", "train_cfg", ",", "test_cfg", "=", "test_cfg", ")", ")" ]
[ 64, 0 ]
[ 66, 78 ]
python
da
['da', 'es', 'en']
False
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(CommunityServerInfoCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "CommunityServerInfoCog", "(", "bot", ")", ")" ]
[ 915, 0 ]
[ 919, 44 ]
python
en
['en', 'error', 'th']
False
CommunityServerInfoCog.is_online_mod_list_reaction_listener
(self, payload: discord.RawReactionActionEvent)
Listens to emojis being clicked on the `is_online` messages to then send the user that clicked it, the modlist per DM. Removes all other emojis being assigned to the messages.
Listens to emojis being clicked on the `is_online` messages to then send the user that clicked it, the modlist per DM.
async def is_online_mod_list_reaction_listener(self, payload: discord.RawReactionActionEvent): """ Listens to emojis being clicked on the `is_online` messages to then send the user that clicked it, the modlist per DM. Removes all other emojis being assigned to the messages. """ ...
[ "async", "def", "is_online_mod_list_reaction_listener", "(", "self", ",", "payload", ":", "discord", ".", "RawReactionActionEvent", ")", ":", "if", "self", ".", "completely_ready", "is", "False", ":", "return", "reaction_member", "=", "payload", ".", "member", "if...
[ 324, 4 ]
[ 351, 122 ]
python
en
['en', 'error', 'th']
False
CommunityServerInfoCog.current_online_server
(self, ctx: commands.Context)
Shows all server of the Antistasi Community, that are currently online. Example: @AntiPetros current_online_server
Shows all server of the Antistasi Community, that are currently online.
async def current_online_server(self, ctx: commands.Context): """ Shows all server of the Antistasi Community, that are currently online. Example: @AntiPetros current_online_server """ for server in self.server_items: if await server.is_online() is Server...
[ "async", "def", "current_online_server", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "for", "server", "in", "self", ".", "server_items", ":", "if", "await", "server", ".", "is_online", "(", ")", "is", "ServerStatus", ".", "ON", "a...
[ 360, 4 ]
[ 372, 64 ]
python
en
['en', 'error', 'th']
False
CommunityServerInfoCog.get_server_logs
(self, ctx: commands.Context, amount: Optional[int] = 1, server_name: Optional[str] = 'mainserver_1')
Retrieve Log files from the community server. Able to retrieve up to the 5 newest log files at once. Args: amount (Optional[int], optional): How many log files to retrieve. Defaults to 1. server_name (Optional[str], optional): Name of the server, is fuzzy-matched. Defa...
Retrieve Log files from the community server.
async def get_server_logs(self, ctx: commands.Context, amount: Optional[int] = 1, server_name: Optional[str] = 'mainserver_1'): """ Retrieve Log files from the community server. Able to retrieve up to the 5 newest log files at once. Args: amount (Optional[int], optional): H...
[ "async", "def", "get_server_logs", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "amount", ":", "Optional", "[", "int", "]", "=", "1", ",", "server_name", ":", "Optional", "[", "str", "]", "=", "'mainserver_1'", ")", ":", "if", "amount...
[ 376, 4 ]
[ 400, 34 ]
python
en
['en', 'error', 'th']
False
CommunityServerInfoCog.set_server_restart_reason
(self, ctx: commands.Context, notification_msg_id: Optional[int] = None, *, reason: str)
Sets a reason to the embed of a server restart. The reason can either be a text or a key word that points to a stored reason, in which case the stored reason text gets set as reason. Args: reason (str): either the reason as text, does not need quotes `"` around it, or a keyword of...
Sets a reason to the embed of a server restart.
async def set_server_restart_reason(self, ctx: commands.Context, notification_msg_id: Optional[int] = None, *, reason: str): """ Sets a reason to the embed of a server restart. The reason can either be a text or a key word that points to a stored reason, in which case the stored reason text get...
[ "async", "def", "set_server_restart_reason", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "notification_msg_id", ":", "Optional", "[", "int", "]", "=", "None", ",", "*", ",", "reason", ":", "str", ")", ":", "if", "not", "reason", ":", ...
[ 415, 4 ]
[ 457, 84 ]
python
en
['en', 'error', 'th']
False
CommunityServerInfoCog.clear_all_is_online_messages
(self, ctx: commands.Context)
Clears all the `is_online` messages, so they can be rebuilt on the next loop. Example: @AntiPetros clear_all_is_online_messages
Clears all the `is_online` messages, so they can be rebuilt on the next loop.
async def clear_all_is_online_messages(self, ctx: commands.Context): """ Clears all the `is_online` messages, so they can be rebuilt on the next loop. Example: @AntiPetros clear_all_is_online_messages """ await self.clear_all_is_online_messages_mechanism() aw...
[ "async", "def", "clear_all_is_online_messages", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "await", "self", ".", "clear_all_is_online_messages_mechanism", "(", ")", "await", "delete_message_if_text_channel", "(", "ctx", ")" ]
[ 501, 4 ]
[ 509, 49 ]
python
en
['en', 'error', 'th']
False
InjectionContext.__init__
( self, *, settings: Mapping[str, object] = None, enforce_typing: bool = True )
Initialize a `ServiceConfig`.
Initialize a `ServiceConfig`.
def __init__( self, *, settings: Mapping[str, object] = None, enforce_typing: bool = True ): """Initialize a `ServiceConfig`.""" self._injector = Injector(settings, enforce_typing=enforce_typing) self._scope_name = self.ROOT_SCOPE self._scopes = []
[ "def", "__init__", "(", "self", ",", "*", ",", "settings", ":", "Mapping", "[", "str", ",", "object", "]", "=", "None", ",", "enforce_typing", ":", "bool", "=", "True", ")", ":", "self", ".", "_injector", "=", "Injector", "(", "settings", ",", "enfor...
[ 22, 4 ]
[ 28, 25 ]
python
en
['en', 'en', 'it']
True
InjectionContext.injector
(self)
Accessor for scope-specific injector.
Accessor for scope-specific injector.
def injector(self) -> Injector: """Accessor for scope-specific injector.""" return self._injector
[ "def", "injector", "(", "self", ")", "->", "Injector", ":", "return", "self", ".", "_injector" ]
[ 31, 4 ]
[ 33, 29 ]
python
en
['nb', 'en', 'en']
True
InjectionContext.injector
(self, injector: Injector)
Setter for scope-specific injector.
Setter for scope-specific injector.
def injector(self, injector: Injector): """Setter for scope-specific injector.""" self._injector = injector
[ "def", "injector", "(", "self", ",", "injector", ":", "Injector", ")", ":", "self", ".", "_injector", "=", "injector" ]
[ 36, 4 ]
[ 38, 33 ]
python
en
['nb', 'en', 'en']
True
InjectionContext.scope_name
(self)
Accessor for the current scope name.
Accessor for the current scope name.
def scope_name(self) -> str: """Accessor for the current scope name.""" return self._scope_name
[ "def", "scope_name", "(", "self", ")", "->", "str", ":", "return", "self", ".", "_scope_name" ]
[ 41, 4 ]
[ 43, 31 ]
python
en
['en', 'en', 'en']
True
InjectionContext.scope_name
(self, scope_name: str)
Accessor for the current scope name.
Accessor for the current scope name.
def scope_name(self, scope_name: str): """Accessor for the current scope name.""" self._scope_name = scope_name
[ "def", "scope_name", "(", "self", ",", "scope_name", ":", "str", ")", ":", "self", ".", "_scope_name", "=", "scope_name" ]
[ 46, 4 ]
[ 48, 37 ]
python
en
['en', 'en', 'en']
True
InjectionContext.settings
(self)
Accessor for scope-specific settings.
Accessor for scope-specific settings.
def settings(self) -> Settings: """Accessor for scope-specific settings.""" return self.injector.settings
[ "def", "settings", "(", "self", ")", "->", "Settings", ":", "return", "self", ".", "injector", ".", "settings" ]
[ 51, 4 ]
[ 53, 37 ]
python
en
['en', 'en', 'en']
True
InjectionContext.settings
(self, settings: Settings)
Setter for scope-specific settings.
Setter for scope-specific settings.
def settings(self, settings: Settings): """Setter for scope-specific settings.""" self.injector.settings = settings
[ "def", "settings", "(", "self", ",", "settings", ":", "Settings", ")", ":", "self", ".", "injector", ".", "settings", "=", "settings" ]
[ 56, 4 ]
[ 58, 41 ]
python
en
['en', 'no', 'en']
True
InjectionContext.update_settings
(self, settings: Mapping[str, object])
Update the scope with additional settings.
Update the scope with additional settings.
def update_settings(self, settings: Mapping[str, object]): """Update the scope with additional settings.""" if settings: self.injector.settings = self.injector.settings.extend(settings)
[ "def", "update_settings", "(", "self", ",", "settings", ":", "Mapping", "[", "str", ",", "object", "]", ")", ":", "if", "settings", ":", "self", ".", "injector", ".", "settings", "=", "self", ".", "injector", ".", "settings", ".", "extend", "(", "setti...
[ 60, 4 ]
[ 63, 76 ]
python
en
['en', 'en', 'en']
True
InjectionContext.start_scope
( self, scope_name: str, settings: Mapping[str, object] = None )
Begin a new named scope. Args: scope_name: The unique name for the scope being entered settings: An optional mapping of additional settings to apply Returns: A new injection context representing the scope
Begin a new named scope.
def start_scope( self, scope_name: str, settings: Mapping[str, object] = None ) -> "InjectionContext": """Begin a new named scope. Args: scope_name: The unique name for the scope being entered settings: An optional mapping of additional settings to apply Ret...
[ "def", "start_scope", "(", "self", ",", "scope_name", ":", "str", ",", "settings", ":", "Mapping", "[", "str", ",", "object", "]", "=", "None", ")", "->", "\"InjectionContext\"", ":", "if", "not", "scope_name", ":", "raise", "InjectionContextError", "(", "...
[ 65, 4 ]
[ 92, 21 ]
python
en
['en', 'ig', 'en']
True
InjectionContext.injector_for_scope
(self, scope_name: str)
Fetch the injector for a specific scope. Args: scope_name: The unique scope identifier
Fetch the injector for a specific scope.
def injector_for_scope(self, scope_name: str) -> Injector: """Fetch the injector for a specific scope. Args: scope_name: The unique scope identifier """ if scope_name == self.scope_name: return self.injector for scope in self._scopes: if scope...
[ "def", "injector_for_scope", "(", "self", ",", "scope_name", ":", "str", ")", "->", "Injector", ":", "if", "scope_name", "==", "self", ".", "scope_name", ":", "return", "self", ".", "injector", "for", "scope", "in", "self", ".", "_scopes", ":", "if", "sc...
[ 94, 4 ]
[ 105, 19 ]
python
en
['en', 'en', 'en']
True
InjectionContext.inject
( self, base_cls: type, settings: Mapping[str, object] = None, *, required: bool = True )
Get the provided instance of a given class identifier. Args: cls: The base class to retrieve an instance of settings: An optional mapping providing configuration to the provider Returns: An instance of the base class, or None
Get the provided instance of a given class identifier.
async def inject( self, base_cls: type, settings: Mapping[str, object] = None, *, required: bool = True ) -> object: """ Get the provided instance of a given class identifier. Args: cls: The base class to retrieve an instance of ...
[ "async", "def", "inject", "(", "self", ",", "base_cls", ":", "type", ",", "settings", ":", "Mapping", "[", "str", ",", "object", "]", "=", "None", ",", "*", ",", "required", ":", "bool", "=", "True", ")", "->", "object", ":", "return", "await", "se...
[ 107, 4 ]
[ 125, 80 ]
python
en
['en', 'error', 'th']
False
InjectionContext.copy
(self)
Produce a copy of the injector instance.
Produce a copy of the injector instance.
def copy(self) -> "InjectionContext": """Produce a copy of the injector instance.""" result = copy.copy(self) result._injector = self.injector.copy() result._scopes = self._scopes.copy() return result
[ "def", "copy", "(", "self", ")", "->", "\"InjectionContext\"", ":", "result", "=", "copy", ".", "copy", "(", "self", ")", "result", ".", "_injector", "=", "self", ".", "injector", ".", "copy", "(", ")", "result", ".", "_scopes", "=", "self", ".", "_s...
[ 127, 4 ]
[ 132, 21 ]
python
en
['en', 'en', 'en']
True
cast_tensor_type
(inputs, src_type, dst_type)
Recursively convert Tensor in inputs from src_type to dst_type. Args: inputs: Inputs that to be casted. src_type (torch.dtype): Source type.. dst_type (torch.dtype): Destination type. Returns: The same type with inputs, but all contained Tensors have been cast.
Recursively convert Tensor in inputs from src_type to dst_type.
def cast_tensor_type(inputs, src_type, dst_type): """Recursively convert Tensor in inputs from src_type to dst_type. Args: inputs: Inputs that to be casted. src_type (torch.dtype): Source type.. dst_type (torch.dtype): Destination type. Returns: The same type with inputs, b...
[ "def", "cast_tensor_type", "(", "inputs", ",", "src_type", ",", "dst_type", ")", ":", "if", "isinstance", "(", "inputs", ",", "torch", ".", "Tensor", ")", ":", "return", "inputs", ".", "to", "(", "dst_type", ")", "elif", "isinstance", "(", "inputs", ",",...
[ 6, 0 ]
[ 32, 21 ]
python
en
['en', 'en', 'en']
True
CmdMobOnOff.func
(self)
Uses the mob's set_alive/set_dead methods to turn on/off the mob."
Uses the mob's set_alive/set_dead methods to turn on/off the mob."
def func(self): """ Uses the mob's set_alive/set_dead methods to turn on/off the mob." """ if not self.args: self.caller.msg("Usage: mobon|moboff <mob>") return mob = self.caller.search(self.args) if not mob: return if s...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", ":", "self", ".", "caller", ".", "msg", "(", "\"Usage: mobon|moboff <mob>\"", ")", "return", "mob", "=", "self", ".", "caller", ".", "search", "(", "self", ".", "args", ")", "if"...
[ 33, 4 ]
[ 47, 26 ]
python
en
['en', 'error', 'th']
False
Mob.at_init
(self)
When initialized from cache (after a server reboot), set up the AI state.
When initialized from cache (after a server reboot), set up the AI state.
def at_init(self): """ When initialized from cache (after a server reboot), set up the AI state. """ # The AI state machine (not persistent). self.ndb.is_patrolling = self.db.patrolling and not self.db.is_dead self.ndb.is_attacking = False self.ndb.is_hunt...
[ "def", "at_init", "(", "self", ")", ":", "# The AI state machine (not persistent).", "self", ".", "ndb", ".", "is_patrolling", "=", "self", ".", "db", ".", "patrolling", "and", "not", "self", ".", "db", ".", "is_dead", "self", ".", "ndb", ".", "is_attacking"...
[ 97, 4 ]
[ 106, 66 ]
python
en
['en', 'error', 'th']
False
Mob.at_object_creation
(self)
Called the first time the object is created. We set up the base properties and flags here.
Called the first time the object is created. We set up the base properties and flags here.
def at_object_creation(self): """ Called the first time the object is created. We set up the base properties and flags here. """ self.cmdset.add(MobCmdSet, permanent=True) # Main AI flags. We start in dead mode so we don't have to # chase the mob around when build...
[ "def", "at_object_creation", "(", "self", ")", ":", "self", ".", "cmdset", ".", "add", "(", "MobCmdSet", ",", "permanent", "=", "True", ")", "# Main AI flags. We start in dead mode so we don't have to", "# chase the mob around when building.", "self", ".", "db", ".", ...
[ 108, 4 ]
[ 159, 97 ]
python
en
['en', 'error', 'th']
False
Mob._set_ticker
(self, interval, hook_key, stop=False)
Set how often the given hook key should be "ticked". Args: interval (int): The number of seconds between ticks hook_key (str): The name of the method (on this mob) to call every interval seconds. stop (bool, op...
Set how often the given hook key should be "ticked".
def _set_ticker(self, interval, hook_key, stop=False): """ Set how often the given hook key should be "ticked". Args: interval (int): The number of seconds between ticks hook_key (str): The name of the method (on this mob) to call ...
[ "def", "_set_ticker", "(", "self", ",", "interval", ",", "hook_key", ",", "stop", "=", "False", ")", ":", "idstring", "=", "\"tutorial_mob\"", "# this doesn't change", "last_interval", "=", "self", ".", "db", ".", "last_ticker_interval", "last_hook_key", "=", "s...
[ 161, 4 ]
[ 197, 83 ]
python
en
['en', 'error', 'th']
False
Mob._find_target
(self, location)
Scan the given location for suitable targets (this is defined as Characters) to attack. Will ignore superusers. Args: location (Object): the room to scan. Returns: The first suitable target found.
Scan the given location for suitable targets (this is defined as Characters) to attack. Will ignore superusers.
def _find_target(self, location): """ Scan the given location for suitable targets (this is defined as Characters) to attack. Will ignore superusers. Args: location (Object): the room to scan. Returns: The first suitable target found. """ ...
[ "def", "_find_target", "(", "self", ",", "location", ")", ":", "targets", "=", "[", "obj", "for", "obj", "in", "location", ".", "contents_get", "(", "exclude", "=", "self", ")", "if", "obj", ".", "has_account", "and", "not", "obj", ".", "is_superuser", ...
[ 199, 4 ]
[ 213, 46 ]
python
en
['en', 'error', 'th']
False
Mob.set_alive
(self, *args, **kwargs)
Set the mob to "alive" mode. This effectively resurrects it from the dead state.
Set the mob to "alive" mode. This effectively resurrects it from the dead state.
def set_alive(self, *args, **kwargs): """ Set the mob to "alive" mode. This effectively resurrects it from the dead state. """ self.db.health = self.db.full_health self.db.is_dead = False self.db.desc = self.db.desc_alive self.ndb.is_immortal = self.db.imm...
[ "def", "set_alive", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "self", ".", "db", ".", "health", "=", "self", ".", "db", ".", "full_health", "self", ".", "db", ".", "is_dead", "=", "False", "self", ".", "db", ".", "desc", ...
[ 215, 4 ]
[ 228, 35 ]
python
en
['en', 'error', 'th']
False
Mob.set_dead
(self)
Set the mob to "dead" mode. This turns it off and makes sure it can take no more damage. It also starts a ticker for when it will return.
Set the mob to "dead" mode. This turns it off and makes sure it can take no more damage. It also starts a ticker for when it will return.
def set_dead(self): """ Set the mob to "dead" mode. This turns it off and makes sure it can take no more damage. It also starts a ticker for when it will return. """ self.db.is_dead = True self.location = None self.ndb.is_patrolling = False self.nd...
[ "def", "set_dead", "(", "self", ")", ":", "self", ".", "db", ".", "is_dead", "=", "True", "self", ".", "location", "=", "None", "self", ".", "ndb", ".", "is_patrolling", "=", "False", "self", ".", "ndb", ".", "is_attacking", "=", "False", "self", "."...
[ 230, 4 ]
[ 243, 57 ]
python
en
['en', 'error', 'th']
False
Mob.start_idle
(self)
Starts just standing around. This will kill the ticker and do nothing more.
Starts just standing around. This will kill the ticker and do nothing more.
def start_idle(self): """ Starts just standing around. This will kill the ticker and do nothing more. """ self._set_ticker(None, None, stop=True)
[ "def", "start_idle", "(", "self", ")", ":", "self", ".", "_set_ticker", "(", "None", ",", "None", ",", "stop", "=", "True", ")" ]
[ 245, 4 ]
[ 250, 47 ]
python
en
['en', 'error', 'th']
False
Mob.start_patrolling
(self)
Start the patrolling state by registering us with the ticker-handler at a leasurely pace.
Start the patrolling state by registering us with the ticker-handler at a leasurely pace.
def start_patrolling(self): """ Start the patrolling state by registering us with the ticker-handler at a leasurely pace. """ if not self.db.patrolling: self.start_idle() return self._set_ticker(self.db.patrolling_pace, "do_patrol") ...
[ "def", "start_patrolling", "(", "self", ")", ":", "if", "not", "self", ".", "db", ".", "patrolling", ":", "self", ".", "start_idle", "(", ")", "return", "self", ".", "_set_ticker", "(", "self", ".", "db", ".", "patrolling_pace", ",", "\"do_patrol\"", ")"...
[ 252, 4 ]
[ 266, 44 ]
python
en
['en', 'error', 'th']
False
Mob.start_hunting
(self)
Start the hunting state
Start the hunting state
def start_hunting(self): """ Start the hunting state """ if not self.db.hunting: self.start_patrolling() return self._set_ticker(self.db.hunting_pace, "do_hunt") self.ndb.is_patrolling = False self.ndb.is_hunting = True self.ndb.is_...
[ "def", "start_hunting", "(", "self", ")", ":", "if", "not", "self", ".", "db", ".", "hunting", ":", "self", ".", "start_patrolling", "(", ")", "return", "self", ".", "_set_ticker", "(", "self", ".", "db", ".", "hunting_pace", ",", "\"do_hunt\"", ")", "...
[ 268, 4 ]
[ 278, 37 ]
python
en
['en', 'error', 'th']
False
Mob.start_attacking
(self)
Start the attacking state
Start the attacking state
def start_attacking(self): """ Start the attacking state """ if not self.db.aggressive: self.start_hunting() return self._set_ticker(self.db.aggressive_pace, "do_attack") self.ndb.is_patrolling = False self.ndb.is_hunting = False se...
[ "def", "start_attacking", "(", "self", ")", ":", "if", "not", "self", ".", "db", ".", "aggressive", ":", "self", ".", "start_hunting", "(", ")", "return", "self", ".", "_set_ticker", "(", "self", ".", "db", ".", "aggressive_pace", ",", "\"do_attack\"", "...
[ 280, 4 ]
[ 290, 36 ]
python
en
['en', 'error', 'th']
False
Mob.do_patrol
(self, *args, **kwargs)
Called repeatedly during patrolling mode. In this mode, the mob scans its surroundings and randomly chooses a viable exit. One should lock exits with the traverse:has_account() lock in order to block the mob from moving outside its area while allowing account-controlled charact...
Called repeatedly during patrolling mode. In this mode, the mob scans its surroundings and randomly chooses a viable exit. One should lock exits with the traverse:has_account() lock in order to block the mob from moving outside its area while allowing account-controlled charact...
def do_patrol(self, *args, **kwargs): """ Called repeatedly during patrolling mode. In this mode, the mob scans its surroundings and randomly chooses a viable exit. One should lock exits with the traverse:has_account() lock in order to block the mob from moving outside its area ...
[ "def", "do_patrol", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "random", ".", "random", "(", ")", "<", "0.01", "and", "self", ".", "db", ".", "irregular_msgs", ":", "self", ".", "location", ".", "msg_contents", "(", "ra...
[ 292, 4 ]
[ 318, 35 ]
python
en
['en', 'error', 'th']
False
Mob.do_hunting
(self, *args, **kwargs)
Called regularly when in hunting mode. In hunting mode the mob scans adjacent rooms for enemies and moves towards them to attack if possible.
Called regularly when in hunting mode. In hunting mode the mob scans adjacent rooms for enemies and moves towards them to attack if possible.
def do_hunting(self, *args, **kwargs): """ Called regularly when in hunting mode. In hunting mode the mob scans adjacent rooms for enemies and moves towards them to attack if possible. """ if random.random() < 0.01 and self.db.irregular_msgs: self.location.msg...
[ "def", "do_hunting", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "random", ".", "random", "(", ")", "<", "0.01", "and", "self", ".", "db", ".", "irregular_msgs", ":", "self", ".", "location", ".", "msg_contents", "(", "r...
[ 320, 4 ]
[ 350, 35 ]
python
en
['en', 'error', 'th']
False
Mob.do_attack
(self, *args, **kwargs)
Called regularly when in attacking mode. In attacking mode the mob will bring its weapons to bear on any targets in the room.
Called regularly when in attacking mode. In attacking mode the mob will bring its weapons to bear on any targets in the room.
def do_attack(self, *args, **kwargs): """ Called regularly when in attacking mode. In attacking mode the mob will bring its weapons to bear on any targets in the room. """ if random.random() < 0.01 and self.db.irregular_msgs: self.location.msg_contents(random....
[ "def", "do_attack", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "random", ".", "random", "(", ")", "<", "0.01", "and", "self", ".", "db", ".", "irregular_msgs", ":", "self", ".", "location", ".", "msg_contents", "(", "ra...
[ 352, 4 ]
[ 383, 103 ]
python
en
['en', 'error', 'th']
False