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
MemoryEfficientFP16Optimizer.zero_grad
(self)
Clears the gradients of all optimized parameters.
Clears the gradients of all optimized parameters.
def zero_grad(self): """ Clears the gradients of all optimized parameters. """ self.optimizer.zero_grad() self._grads_are_scaled = False
[ "def", "zero_grad", "(", "self", ")", ":", "self", ".", "optimizer", ".", "zero_grad", "(", ")", "self", ".", "_grads_are_scaled", "=", "False" ]
[ 425, 4 ]
[ 430, 38 ]
python
en
['en', 'error', 'th']
False
Adafactor._get_options
(self, param_group, param_shape)
Return factored and whether to use first moment (beta1).
Return factored and whether to use first moment (beta1).
def _get_options(self, param_group, param_shape): """ Return factored and whether to use first moment (beta1). """ factored = len(param_shape) >= 2 use_first_moment = param_group['beta1'] is not None return factored, use_first_moment
[ "def", "_get_options", "(", "self", ",", "param_group", ",", "param_shape", ")", ":", "factored", "=", "len", "(", "param_shape", ")", ">=", "2", "use_first_moment", "=", "param_group", "[", "'beta1'", "]", "is", "not", "None", "return", "factored", ",", "...
[ 590, 4 ]
[ 596, 41 ]
python
en
['en', 'error', 'th']
False
Adafactor._rms
(self, tensor)
Root mean square of a tensor.
Root mean square of a tensor.
def _rms(self, tensor): """ Root mean square of a tensor. """ return tensor.norm(2) / (tensor.numel() ** 0.5)
[ "def", "_rms", "(", "self", ",", "tensor", ")", ":", "return", "tensor", ".", "norm", "(", "2", ")", "/", "(", "tensor", ".", "numel", "(", ")", "**", "0.5", ")" ]
[ 598, 4 ]
[ 602, 55 ]
python
en
['en', 'error', 'th']
False
Adafactor.step
(self, closure=None)
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model and returns the loss.
Performs a single optimization step.
def step(self, closure=None): """ Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model and returns the loss. """ loss = None if closure is not None: loss = closure() ...
[ "def", "step", "(", "self", ",", "closure", "=", "None", ")", ":", "loss", "=", "None", "if", "closure", "is", "not", "None", ":", "loss", "=", "closure", "(", ")", "for", "group", "in", "self", ".", "param_groups", ":", "for", "p", "in", "group", ...
[ 613, 4 ]
[ 703, 19 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.Stream` maxpoints Sets the maximum number of points to keep ...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.Stream` maxpoints Sets the maximum number of points to keep ...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.S...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
Line.color
(self)
Sets the line 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%)') - ...
Sets the line 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%)') - ...
def color(self): """ Sets the line 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...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Line.dash
(self)
Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is an enumeration that may be specified as: - One of the following da...
Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is an enumeration that may be specified as: - One of the following da...
def dash(self): """ Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is an enumeration that may be specified as: ...
[ "def", "dash", "(", "self", ")", ":", "return", "self", "[", "\"dash\"", "]" ]
[ 74, 4 ]
[ 91, 27 ]
python
en
['en', 'error', 'th']
False
Line.shape
(self)
Determines the line shape. With "spline" the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. The 'shape' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines the line shape. With "spline" the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. The 'shape' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def shape(self): """ Determines the line shape. With "spline" the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. The 'shape' property is an enumeration that may be specified as: - One of the following enu...
[ "def", "shape", "(", "self", ")", ":", "return", "self", "[", "\"shape\"", "]" ]
[ 100, 4 ]
[ 114, 28 ]
python
en
['en', 'error', 'th']
False
Line.smoothing
(self)
Has an effect only if `shape` is set to "spline" Sets the amount of smoothing. 0 corresponds to no smoothing (equivalent to a "linear" shape). The 'smoothing' property is a number and may be specified as: - An int or float in the interval [0, 1.3] Returns ...
Has an effect only if `shape` is set to "spline" Sets the amount of smoothing. 0 corresponds to no smoothing (equivalent to a "linear" shape). The 'smoothing' property is a number and may be specified as: - An int or float in the interval [0, 1.3]
def smoothing(self): """ Has an effect only if `shape` is set to "spline" Sets the amount of smoothing. 0 corresponds to no smoothing (equivalent to a "linear" shape). The 'smoothing' property is a number and may be specified as: - An int or float in the interval [...
[ "def", "smoothing", "(", "self", ")", ":", "return", "self", "[", "\"smoothing\"", "]" ]
[ 123, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the line width (in px). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the line width (in px). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf]
def width(self): """ Sets the line width (in px). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 145, 4 ]
[ 156, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
( self, arg=None, color=None, dash=None, shape=None, smoothing=None, width=None, **kwargs )
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary.Line` color Sets the line color. dash ...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary.Line` color Sets the line color. dash ...
def __init__( self, arg=None, color=None, dash=None, shape=None, smoothing=None, width=None, **kwargs ): """ Construct a new Line object Parameters ---------- arg dict of properties compatibl...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "dash", "=", "None", ",", "shape", "=", "None", ",", "smoothing", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", ...
[ 186, 4 ]
[ 283, 34 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets the marker color of unselected points, applied only when a selection exists. 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%)') ...
Sets the marker color of unselected points, applied only when a selection exists. 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%)') ...
def color(self): """ Sets the marker color of unselected points, applied only when a selection exists. 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 stri...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 66, 28 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity of unselected points, applied only when a selection exists. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the marker opacity of unselected points, applied only when a selection exists. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the marker opacity of unselected points, applied only when a selection exists. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ ...
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 75, 4 ]
[ 87, 30 ]
python
en
['en', 'error', 'th']
False
Marker.size
(self)
Sets the marker size of unselected points, applied only when a selection exists. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the marker size of unselected points, applied only when a selection exists. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the marker size of unselected points, applied only when a selection exists. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ r...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 96, 4 ]
[ 108, 27 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, opacity=None, size=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox. unselected.Marker` color Sets the marker color of unsel...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox. unselected.Marker` color Sets the marker color of unsel...
def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "opacity", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marke...
[ 130, 4 ]
[ 202, 34 ]
python
en
['en', 'error', 'th']
False
Tickfont.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
Tickfont.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
Tickfont.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
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.mar ker.colorbar.Tickfont` ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
launch_and_train
(opt, port)
Perform a fork() to many processes.
Perform a fork() to many processes.
def launch_and_train(opt, port): """ Perform a fork() to many processes. """ # Launch multiple subprocesses spawncontext = torch.multiprocessing.spawn( multiprocess_train, # need to give rank offset as 1 to cover the fact that the main # process is rank 0, but that spawn() do...
[ "def", "launch_and_train", "(", "opt", ",", "port", ")", ":", "# Launch multiple subprocesses", "spawncontext", "=", "torch", ".", "multiprocessing", ".", "spawn", "(", "multiprocess_train", ",", "# need to give rank offset as 1 to cover the fact that the main", "# process is...
[ 46, 0 ]
[ 69, 13 ]
python
en
['en', 'error', 'th']
False
NumpyTestUtilsMixin.assert_fig_equal
(self, d1, d2, msg=None, ignore=["uid"])
Helper function for assert_dict_equal By defualt removes uid from d1 and/or d2 if present then calls assert_dict_equal. :param (list|tuple) ignore: sequence of key names as strings that are removed from both d1 and d2 if they exist
Helper function for assert_dict_equal
def assert_fig_equal(self, d1, d2, msg=None, ignore=["uid"]): """ Helper function for assert_dict_equal By defualt removes uid from d1 and/or d2 if present then calls assert_dict_equal. :param (list|tuple) ignore: sequence of key names as strings that are removed fr...
[ "def", "assert_fig_equal", "(", "self", ",", "d1", ",", "d2", ",", "msg", "=", "None", ",", "ignore", "=", "[", "\"uid\"", "]", ")", ":", "# deep copy d1 and d2", "if", "\"to_plotly_json\"", "in", "dir", "(", "d1", ")", ":", "d1_copy", "=", "copy", "."...
[ 35, 4 ]
[ 63, 58 ]
python
en
['en', 'error', 'th']
False
NumpyTestUtilsMixin.assert_dict_equal
(self, d1, d2, msg=None)
Uses `np.allclose()` on number arrays. :raises: (AssertionError) Using TestCase's self.failureException
Uses `np.allclose()` on number arrays.
def assert_dict_equal(self, d1, d2, msg=None): """ Uses `np.allclose()` on number arrays. :raises: (AssertionError) Using TestCase's self.failureException """ self.assertIsInstance(d1, dict, "First argument is not a dictionary") self.assertIsInstance(d2, dict, "Second a...
[ "def", "assert_dict_equal", "(", "self", ",", "d1", ",", "d2", ",", "msg", "=", "None", ")", ":", "self", ".", "assertIsInstance", "(", "d1", ",", "dict", ",", "\"First argument is not a dictionary\"", ")", "self", ".", "assertIsInstance", "(", "d2", ",", ...
[ 65, 4 ]
[ 125, 69 ]
python
en
['en', 'error', 'th']
False
WriteRequestValidator.create_auth_strategy
(self)
depends on config
depends on config
def create_auth_strategy(self): """depends on config""" if self.config.authPolicy == LOCAL_AUTH_POLICY: return LocalAuthStrategy(auth_map=self.auth_map) elif self.config.authPolicy == CONFIG_LEDGER_AUTH_POLICY: return ConfigLedgerAuthStrategy(auth_map=self.auth_map, ...
[ "def", "create_auth_strategy", "(", "self", ")", ":", "if", "self", ".", "config", ".", "authPolicy", "==", "LOCAL_AUTH_POLICY", ":", "return", "LocalAuthStrategy", "(", "auth_map", "=", "self", ".", "auth_map", ")", "elif", "self", ".", "config", ".", "auth...
[ 74, 4 ]
[ 82, 65 ]
python
en
['en', 'en', 'en']
True
BaseInboundTransport.__init__
( self, scheme: str, create_session: Callable, *, max_message_size: int = 0, wire_format: BaseWireFormat = None, )
Initialize the inbound transport instance. Args: scheme: The transport scheme identifier create_session: Method to create a new inbound session
Initialize the inbound transport instance.
def __init__( self, scheme: str, create_session: Callable, *, max_message_size: int = 0, wire_format: BaseWireFormat = None, ): """ Initialize the inbound transport instance. Args: scheme: The transport scheme identifier ...
[ "def", "__init__", "(", "self", ",", "scheme", ":", "str", ",", "create_session", ":", "Callable", ",", "*", ",", "max_message_size", ":", "int", "=", "0", ",", "wire_format", ":", "BaseWireFormat", "=", "None", ",", ")", ":", "self", ".", "_create_sessi...
[ 15, 4 ]
[ 34, 54 ]
python
en
['en', 'error', 'th']
False
BaseInboundTransport.max_message_size
(self)
Accessor for this transport's max message size.
Accessor for this transport's max message size.
def max_message_size(self): """Accessor for this transport's max message size.""" return self._max_message_size
[ "def", "max_message_size", "(", "self", ")", ":", "return", "self", ".", "_max_message_size" ]
[ 37, 4 ]
[ 39, 37 ]
python
en
['en', 'en', 'en']
True
BaseInboundTransport.scheme
(self)
Accessor for this transport's scheme.
Accessor for this transport's scheme.
def scheme(self): """Accessor for this transport's scheme.""" return self._scheme
[ "def", "scheme", "(", "self", ")", ":", "return", "self", ".", "_scheme" ]
[ 42, 4 ]
[ 44, 27 ]
python
en
['en', 'en', 'en']
True
BaseInboundTransport.create_session
( self, *, accept_undelivered: bool = False, can_respond: bool = False, client_info: dict = None, wire_format: BaseWireFormat = None, )
Create a new inbound session. Args: accept_undelivered: Flag for accepting undelivered messages can_respond: Flag indicating that the transport can send responses client_info: Request-specific client information wire_format: Optionally override the sessi...
Create a new inbound session.
def create_session( self, *, accept_undelivered: bool = False, can_respond: bool = False, client_info: dict = None, wire_format: BaseWireFormat = None, ) -> Awaitable[InboundSession]: """ Create a new inbound session. Args: accept_...
[ "def", "create_session", "(", "self", ",", "*", ",", "accept_undelivered", ":", "bool", "=", "False", ",", "can_respond", ":", "bool", "=", "False", ",", "client_info", ":", "dict", "=", "None", ",", "wire_format", ":", "BaseWireFormat", "=", "None", ",", ...
[ 46, 4 ]
[ 69, 9 ]
python
en
['en', 'error', 'th']
False
BaseInboundTransport.start
(self)
Start listening for on this transport.
Start listening for on this transport.
async def start(self) -> None: """Start listening for on this transport."""
[ "async", "def", "start", "(", "self", ")", "->", "None", ":" ]
[ 72, 4 ]
[ 73, 52 ]
python
en
['en', 'no', 'en']
True
BaseInboundTransport.stop
(self)
Stop listening for on this transport.
Stop listening for on this transport.
async def stop(self) -> None: """Stop listening for on this transport."""
[ "async", "def", "stop", "(", "self", ")", "->", "None", ":" ]
[ 76, 4 ]
[ 77, 51 ]
python
en
['en', 'en', 'en']
True
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properti...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properti...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 39, 29 ]
python
en
['en', 'error', 'th']
False
Unselected.textfont
(self)
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict ...
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict ...
def textfont(self): """ The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 48, 4 ]
[ 66, 31 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, textfont=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattercarpet.Unselected` marker :class:`plotly.graph_objects.scat...
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattercarpet.Unselected` marker :class:`plotly.graph_objects.scat...
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "textfont", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "...
[ 85, 4 ]
[ 150, 34 ]
python
en
['en', 'error', 'th']
False
datetime_to_str
(dt: Union[str, datetime])
Convert a datetime object to an indy-standard datetime string. Args: dt: May be a string or datetime to allow automatic conversion
Convert a datetime object to an indy-standard datetime string.
def datetime_to_str(dt: Union[str, datetime]) -> str: """Convert a datetime object to an indy-standard datetime string. Args: dt: May be a string or datetime to allow automatic conversion """ if isinstance(dt, datetime): dt = dt.replace(tzinfo=timezone.utc).isoformat(" ").replace("+00:0...
[ "def", "datetime_to_str", "(", "dt", ":", "Union", "[", "str", ",", "datetime", "]", ")", "->", "str", ":", "if", "isinstance", "(", "dt", ",", "datetime", ")", ":", "dt", "=", "dt", ".", "replace", "(", "tzinfo", "=", "timezone", ".", "utc", ")", ...
[ 11, 0 ]
[ 19, 13 ]
python
en
['en', 'en', 'en']
True
str_to_datetime
(dt: Union[str, datetime])
Convert an indy-standard datetime string to a datetime. Using a fairly lax regex pattern to match slightly different formats. In Python 3.7 datetime.fromisoformat might be used. Args: dt: May be a string or datetime to allow automatic conversion
Convert an indy-standard datetime string to a datetime.
def str_to_datetime(dt: Union[str, datetime]) -> datetime: """Convert an indy-standard datetime string to a datetime. Using a fairly lax regex pattern to match slightly different formats. In Python 3.7 datetime.fromisoformat might be used. Args: dt: May be a string or datetime to allow automat...
[ "def", "str_to_datetime", "(", "dt", ":", "Union", "[", "str", ",", "datetime", "]", ")", "->", "datetime", ":", "if", "isinstance", "(", "dt", ",", "str", ")", ":", "match", "=", "re", ".", "match", "(", "r\"^(\\d{4})-(\\d\\d)-(\\d\\d)[T ](\\d\\d):(\\d\\d)\...
[ 22, 0 ]
[ 67, 13 ]
python
en
['en', 'en', 'en']
True
str_to_epoch
(dt: Union[str, datetime])
Convert an indy-standard datetime string to epoch seconds. Args: dt: May be a string or datetime to allow automatic conversion
Convert an indy-standard datetime string to epoch seconds.
def str_to_epoch(dt: Union[str, datetime]) -> int: """Convert an indy-standard datetime string to epoch seconds. Args: dt: May be a string or datetime to allow automatic conversion """ return int(str_to_datetime(dt).timestamp())
[ "def", "str_to_epoch", "(", "dt", ":", "Union", "[", "str", ",", "datetime", "]", ")", "->", "int", ":", "return", "int", "(", "str_to_datetime", "(", "dt", ")", ".", "timestamp", "(", ")", ")" ]
[ 70, 0 ]
[ 77, 47 ]
python
en
['en', 'en', 'en']
True
epoch_to_str
(epoch: int)
Convert epoch seconds to indy-standard datetime string. Args: epoch: epoch seconds
Convert epoch seconds to indy-standard datetime string.
def epoch_to_str(epoch: int) -> str: """Convert epoch seconds to indy-standard datetime string. Args: epoch: epoch seconds """ return datetime_to_str(datetime.fromtimestamp(epoch, tz=timezone.utc))
[ "def", "epoch_to_str", "(", "epoch", ":", "int", ")", "->", "str", ":", "return", "datetime_to_str", "(", "datetime", ".", "fromtimestamp", "(", "epoch", ",", "tz", "=", "timezone", ".", "utc", ")", ")" ]
[ 80, 0 ]
[ 87, 74 ]
python
en
['en', 'en', 'en']
True
datetime_now
()
Timestamp in UTC.
Timestamp in UTC.
def datetime_now() -> datetime: """Timestamp in UTC.""" return datetime.utcnow().replace(tzinfo=timezone.utc)
[ "def", "datetime_now", "(", ")", "->", "datetime", ":", "return", "datetime", ".", "utcnow", "(", ")", ".", "replace", "(", "tzinfo", "=", "timezone", ".", "utc", ")" ]
[ 90, 0 ]
[ 92, 57 ]
python
en
['en', 'sl', 'it']
False
time_now
()
Timestamp in ISO format.
Timestamp in ISO format.
def time_now() -> str: """Timestamp in ISO format.""" return datetime_to_str(datetime_now())
[ "def", "time_now", "(", ")", "->", "str", ":", "return", "datetime_to_str", "(", "datetime_now", "(", ")", ")" ]
[ 95, 0 ]
[ 97, 42 ]
python
en
['en', 'en', 'it']
True
canon
(raw_attr_name: str)
Canonicalize input attribute name for indy proofs and credential offers. Args: raw_attr_name: raw attribute name Returns: canonicalized attribute name
Canonicalize input attribute name for indy proofs and credential offers.
def canon(raw_attr_name: str) -> str: """ Canonicalize input attribute name for indy proofs and credential offers. Args: raw_attr_name: raw attribute name Returns: canonicalized attribute name """ if raw_attr_name: # do not dereference None, and "" is already canonical ...
[ "def", "canon", "(", "raw_attr_name", ":", "str", ")", "->", "str", ":", "if", "raw_attr_name", ":", "# do not dereference None, and \"\" is already canonical", "return", "raw_attr_name", ".", "replace", "(", "\" \"", ",", "\"\"", ")", ".", "lower", "(", ")", "r...
[ 100, 0 ]
[ 113, 24 ]
python
en
['en', 'error', 'th']
False
to_file
(data)
Writes dictionaries of data generated by an AuditedServerSession to files in JSON format, bucketed by date. Uses Evennia's native logger and writes to the default log directory (~/yourgame/server/logs/ or settings.LOG_DIR) Args: data (dict): Parsed session transmission data.
Writes dictionaries of data generated by an AuditedServerSession to files in JSON format, bucketed by date.
def to_file(data): """ Writes dictionaries of data generated by an AuditedServerSession to files in JSON format, bucketed by date. Uses Evennia's native logger and writes to the default log directory (~/yourgame/server/logs/ or settings.LOG_DIR) Args: data (dict): Parsed session transm...
[ "def", "to_file", "(", "data", ")", ":", "# Bucket logs by day and remove objects before serialization", "bucket", "=", "data", ".", "pop", "(", "'objects'", ")", "[", "'time'", "]", ".", "strftime", "(", "'%Y-%m-%d'", ")", "# Write it", "log_file", "(", "json", ...
[ 20, 0 ]
[ 36, 64 ]
python
en
['en', 'error', 'th']
False
to_syslog
(data)
Writes dictionaries of data generated by an AuditedServerSession to syslog. Takes advantage of your system's native logger and writes to wherever you have it configured, which is independent of Evennia. Linux systems tend to write to /var/log/syslog. If you're running rsyslog, you can configure i...
Writes dictionaries of data generated by an AuditedServerSession to syslog.
def to_syslog(data): """ Writes dictionaries of data generated by an AuditedServerSession to syslog. Takes advantage of your system's native logger and writes to wherever you have it configured, which is independent of Evennia. Linux systems tend to write to /var/log/syslog. If you're running ...
[ "def", "to_syslog", "(", "data", ")", ":", "# Remove objects before serialization", "data", ".", "pop", "(", "'objects'", ")", "# Write it out", "syslog", ".", "syslog", "(", "json", ".", "dumps", "(", "data", ")", ")" ]
[ 39, 0 ]
[ 59, 35 ]
python
en
['en', 'error', 'th']
False
attribute_mime_types_get
(request: web.BaseRequest)
Request handler for getting credential attribute MIME types. Args: request: aiohttp request object Returns: The MIME types response
Request handler for getting credential attribute MIME types.
async def attribute_mime_types_get(request: web.BaseRequest): """ Request handler for getting credential attribute MIME types. Args: request: aiohttp request object Returns: The MIME types response """ context = request.app["request_context"] credential_id = request.match_...
[ "async", "def", "attribute_mime_types_get", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "credential_id", "=", "request", ".", "match_info", "[", "\"credential_id\"", "]", "hold...
[ 127, 0 ]
[ 142, 71 ]
python
en
['en', 'error', 'th']
False
credential_exchange_list
(request: web.BaseRequest)
Request handler for searching connection records. Args: request: aiohttp request object Returns: The connection list response
Request handler for searching connection records.
async def credential_exchange_list(request: web.BaseRequest): """ Request handler for searching connection records. Args: request: aiohttp request object Returns: The connection list response """ context = request.app["request_context"] tag_filter = {} if "thread_id" i...
[ "async", "def", "credential_exchange_list", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "tag_filter", "=", "{", "}", "if", "\"thread_id\"", "in", "request", ".", "query", "...
[ 147, 0 ]
[ 167, 85 ]
python
en
['en', 'error', 'th']
False
credential_exchange_retrieve
(request: web.BaseRequest)
Request handler for fetching single connection record. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for fetching single connection record.
async def credential_exchange_retrieve(request: web.BaseRequest): """ Request handler for fetching single connection record. Args: request: aiohttp request object Returns: The credential exchange record """ context = request.app["request_context"] credential_exchange_id = ...
[ "async", "def", "credential_exchange_retrieve", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "credential_exchange_id", "=", "request", ".", "match_info", "[", "\"cred_ex_id\"", "]...
[ 172, 0 ]
[ 191, 48 ]
python
en
['en', 'error', 'th']
False
credential_exchange_send
(request: web.BaseRequest)
Request handler for sending credential from issuer to holder from attr values. If both issuer and holder are configured for automatic responses, the operation ultimately results in credential issue; otherwise, the result waits on the first response not automated; the credential exchange record retains...
Request handler for sending credential from issuer to holder from attr values.
async def credential_exchange_send(request: web.BaseRequest): """ Request handler for sending credential from issuer to holder from attr values. If both issuer and holder are configured for automatic responses, the operation ultimately results in credential issue; otherwise, the result waits on the fir...
[ "async", "def", "credential_exchange_send", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"", "]", ...
[ 197, 0 ]
[ 251, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_send_proposal
(request: web.BaseRequest)
Request handler for sending credential proposal. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for sending credential proposal.
async def credential_exchange_send_proposal(request: web.BaseRequest): """ Request handler for sending credential proposal. Args: request: aiohttp request object Returns: The credential exchange record """ context = request.app["request_context"] outbound_handler = request...
[ "async", "def", "credential_exchange_send_proposal", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"",...
[ 257, 0 ]
[ 307, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_send_free_offer
(request: web.BaseRequest)
Request handler for sending free credential offer. An issuer initiates a such a credential offer, which is free any holder-initiated corresponding proposal. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for sending free credential offer.
async def credential_exchange_send_free_offer(request: web.BaseRequest): """ Request handler for sending free credential offer. An issuer initiates a such a credential offer, which is free any holder-initiated corresponding proposal. Args: request: aiohttp request object Returns: ...
[ "async", "def", "credential_exchange_send_free_offer", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"...
[ 316, 0 ]
[ 393, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_send_bound_offer
(request: web.BaseRequest)
Request handler for sending bound credential offer. A holder initiates this sequence with a credential proposal; this message responds with an offer bound to the proposal. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for sending bound credential offer.
async def credential_exchange_send_bound_offer(request: web.BaseRequest): """ Request handler for sending bound credential offer. A holder initiates this sequence with a credential proposal; this message responds with an offer bound to the proposal. Args: request: aiohttp request object ...
[ "async", "def", "credential_exchange_send_bound_offer", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\...
[ 401, 0 ]
[ 447, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_send_request
(request: web.BaseRequest)
Request handler for sending credential request. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for sending credential request.
async def credential_exchange_send_request(request: web.BaseRequest): """ Request handler for sending credential request. Args: request: aiohttp request object Returns: The credential exchange record """ context = request.app["request_context"] outbound_handler = request.a...
[ "async", "def", "credential_exchange_send_request", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"", ...
[ 452, 0 ]
[ 496, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_issue
(request: web.BaseRequest)
Request handler for sending credential. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for sending credential.
async def credential_exchange_issue(request: web.BaseRequest): """ Request handler for sending credential. Args: request: aiohttp request object Returns: The credential exchange record """ context = request.app["request_context"] outbound_handler = request.app["outbound_me...
[ "async", "def", "credential_exchange_issue", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"", "]", ...
[ 502, 0 ]
[ 555, 58 ]
python
en
['en', 'error', 'th']
False
credential_exchange_store
(request: web.BaseRequest)
Request handler for storing credential. Args: request: aiohttp request object Returns: The credential exchange record
Request handler for storing credential.
async def credential_exchange_store(request: web.BaseRequest): """ Request handler for storing credential. Args: request: aiohttp request object Returns: The credential exchange record """ context = request.app["request_context"] outbound_handler = request.app["outbound_me...
[ "async", "def", "credential_exchange_store", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\"", "]", ...
[ 560, 0 ]
[ 602, 68 ]
python
en
['en', 'error', 'th']
False
credential_exchange_problem_report
(request: web.BaseRequest)
Request handler for sending problem report. Args: request: aiohttp request object
Request handler for sending problem report.
async def credential_exchange_problem_report(request: web.BaseRequest): """ Request handler for sending problem report. Args: request: aiohttp request object """ context = request.app["request_context"] outbound_handler = request.app["outbound_message_router"] credential_exchange_...
[ "async", "def", "credential_exchange_problem_report", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "outbound_handler", "=", "request", ".", "app", "[", "\"outbound_message_router\""...
[ 609, 0 ]
[ 636, 32 ]
python
en
['en', 'error', 'th']
False
credential_exchange_remove
(request: web.BaseRequest)
Request handler for removing a credential exchange record. Args: request: aiohttp request object
Request handler for removing a credential exchange record.
async def credential_exchange_remove(request: web.BaseRequest): """ Request handler for removing a credential exchange record. Args: request: aiohttp request object """ context = request.app["request_context"] credential_exchange_id = request.match_info["cred_ex_id"] try: c...
[ "async", "def", "credential_exchange_remove", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "credential_exchange_id", "=", "request", ".", "match_info", "[", "\"cred_ex_id\"", "]",...
[ 642, 0 ]
[ 659, 32 ]
python
en
['en', 'error', 'th']
False
register
(app: web.Application)
Register routes.
Register routes.
async def register(app: web.Application): """Register routes.""" app.add_routes( [ web.get( "/issue-credential/mime-types/{credential_id}", attribute_mime_types_get ), web.get("/issue-credential/records", credential_exchange_list), web.get...
[ "async", "def", "register", "(", "app", ":", "web", ".", "Application", ")", ":", "app", ".", "add_routes", "(", "[", "web", ".", "get", "(", "\"/issue-credential/mime-types/{credential_id}\"", ",", "attribute_mime_types_get", ")", ",", "web", ".", "get", "(",...
[ 662, 0 ]
[ 706, 5 ]
python
en
['en', 'fr', 'en']
False
EvenniaTest.setUp
(self)
Sets up testing environment
Sets up testing environment
def setUp(self): """ Sets up testing environment """ self.account = create.create_account("TestAccount", email="test@test.com", password="testpassword", typeclass=self.account_typeclass) self.account2 = create.create_account("TestAccount2", email="test@test.com", password="testpa...
[ "def", "setUp", "(", "self", ")", ":", "self", ".", "account", "=", "create", ".", "create_account", "(", "\"TestAccount\"", ",", "email", "=", "\"test@test.com\"", ",", "password", "=", "\"testpassword\"", ",", "typeclass", "=", "self", ".", "account_typeclas...
[ 27, 4 ]
[ 60, 30 ]
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.scatterpolargl.marker.Line` autocolorscale Determines whether the colors...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolargl.marker.Line` autocolorscale Determines whether the colors...
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
TestPresAttrSpec.test_deserialize
(self)
Test deserialization.
Test deserialization.
def test_deserialize(self): """Test deserialization.""" dump = json.dumps({ "name": "PLAYER", "cred_def_id": CD_ID, "value": "Richie Knucklez" }) attr_spec = PresAttrSpec.deserialize(dump) assert type(attr_spec) == PresAttrSpec assert ...
[ "def", "test_deserialize", "(", "self", ")", ":", "dump", "=", "json", ".", "dumps", "(", "{", "\"name\"", ":", "\"PLAYER\"", ",", "\"cred_def_id\"", ":", "CD_ID", ",", "\"value\"", ":", "\"Richie Knucklez\"", "}", ")", "attr_spec", "=", "PresAttrSpec", ".",...
[ 198, 4 ]
[ 208, 41 ]
python
de
['ro', 'de', 'en']
False
TestPresAttrSpec.test_serialize
(self)
Test serialization.
Test serialization.
def test_serialize(self): """Test serialization.""" attr_spec_dict = PRES_PREVIEW.attributes[0].serialize() assert attr_spec_dict == { "name": "player", "cred_def_id": CD_ID, "value": "Richie Knucklez" }
[ "def", "test_serialize", "(", "self", ")", ":", "attr_spec_dict", "=", "PRES_PREVIEW", ".", "attributes", "[", "0", "]", ".", "serialize", "(", ")", "assert", "attr_spec_dict", "==", "{", "\"name\"", ":", "\"player\"", ",", "\"cred_def_id\"", ":", "CD_ID", "...
[ 210, 4 ]
[ 218, 9 ]
python
en
['en', 'fy', 'en']
False
TestPredicate.test_get
(self)
Get predicate.
Get predicate.
def test_get(self): """Get predicate.""" assert Predicate.get("LT") == Predicate.get("$lt") == Predicate.get("<") assert Predicate.get("LE") == Predicate.get("$lte") == Predicate.get("<=") assert Predicate.get("GE") == Predicate.get("$gte") == Predicate.get(">=") assert Predicate...
[ "def", "test_get", "(", "self", ")", ":", "assert", "Predicate", ".", "get", "(", "\"LT\"", ")", "==", "Predicate", ".", "get", "(", "\"$lt\"", ")", "==", "Predicate", ".", "get", "(", "\"<\"", ")", "assert", "Predicate", ".", "get", "(", "\"LE\"", "...
[ 224, 4 ]
[ 230, 42 ]
python
bg
['sl', 'id', 'bg']
False
TestPredicate.test_cmp
(self)
Test comparison via predicates
Test comparison via predicates
def test_cmp(self): """Test comparison via predicates""" assert Predicate.get("LT").value.yes(0, 1) assert Predicate.get("LT").value.yes("0", "1") assert Predicate.get("LT").value.no(0, 0) assert Predicate.get("LT").value.no(1, 0) assert Predicate.get("LT").value.no("1", ...
[ "def", "test_cmp", "(", "self", ")", ":", "assert", "Predicate", ".", "get", "(", "\"LT\"", ")", ".", "value", ".", "yes", "(", "0", ",", "1", ")", "assert", "Predicate", ".", "get", "(", "\"LT\"", ")", ".", "value", ".", "yes", "(", "\"0\"", ","...
[ 232, 4 ]
[ 260, 53 ]
python
en
['sl', 'it', 'en']
False
TestPresPredSpec.test_deserialize
(self)
Test deserialization.
Test deserialization.
def test_deserialize(self): """Test deserialization.""" dump = json.dumps({ "name": "HIGH SCORE", "cred_def_id": CD_ID, "predicate": ">=", "threshold": 1000000 }) pred_spec = PresPredSpec.deserialize(dump) assert type(pred_spec) ==...
[ "def", "test_deserialize", "(", "self", ")", ":", "dump", "=", "json", ".", "dumps", "(", "{", "\"name\"", ":", "\"HIGH SCORE\"", ",", "\"cred_def_id\"", ":", "CD_ID", ",", "\"predicate\"", ":", "\">=\"", ",", "\"threshold\"", ":", "1000000", "}", ")", "pr...
[ 266, 4 ]
[ 277, 44 ]
python
de
['ro', 'de', 'en']
False
TestPresPredSpec.test_serialize
(self)
Test serialization.
Test serialization.
def test_serialize(self): """Test serialization.""" pred_spec_dict = PRES_PREVIEW.predicates[0].serialize() assert pred_spec_dict == { "name": "highscore", "cred_def_id": CD_ID, "predicate": ">=", "threshold": 1000000 }
[ "def", "test_serialize", "(", "self", ")", ":", "pred_spec_dict", "=", "PRES_PREVIEW", ".", "predicates", "[", "0", "]", ".", "serialize", "(", ")", "assert", "pred_spec_dict", "==", "{", "\"name\"", ":", "\"highscore\"", ",", "\"cred_def_id\"", ":", "CD_ID", ...
[ 279, 4 ]
[ 288, 9 ]
python
en
['en', 'fy', 'en']
False
TestPresPredSpec.test_eq
(self)
Test equality operator.
Test equality operator.
def test_eq(self): """Test equality operator.""" pred_spec_a = PresPredSpec( name="a", cred_def_id=CD_ID, predicate=Predicate.GE.value.math, threshold=0, ) pred_spec_b = PresPredSpec( name="b", cred_def_id=CD_ID, ...
[ "def", "test_eq", "(", "self", ")", ":", "pred_spec_a", "=", "PresPredSpec", "(", "name", "=", "\"a\"", ",", "cred_def_id", "=", "CD_ID", ",", "predicate", "=", "Predicate", ".", "GE", ".", "value", ".", "math", ",", "threshold", "=", "0", ",", ")", ...
[ 290, 4 ]
[ 317, 41 ]
python
en
['en', 'en', 'en']
True
Tickfont.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
Tickfont.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
Tickfont.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
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcoords.line .colorbar.Tickfont` ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
AngularAxis.categoryarray
(self)
Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def categoryarray(self): """ Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or p...
[ "def", "categoryarray", "(", "self", ")", ":", "return", "self", "[", "\"categoryarray\"", "]" ]
[ 60, 4 ]
[ 73, 36 ]
python
en
['en', 'error', 'th']
False
AngularAxis.categoryarraysrc
(self)
Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' 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 categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def categoryarraysrc(self): """ Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "categoryarraysrc", "(", "self", ")", ":", "return", "self", "[", "\"categoryarraysrc\"", "]" ]
[ 82, 4 ]
[ 94, 39 ]
python
en
['en', 'error', 'th']
False
AngularAxis.categoryorder
(self)
Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanum...
Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanum...
def categoryorder(self): """ Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order ...
[ "def", "categoryorder", "(", "self", ")", ":", "return", "self", "[", "\"categoryorder\"", "]" ]
[ 103, 4 ]
[ 134, 36 ]
python
en
['en', 'error', 'th']
False
AngularAxis.color
(self)
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
def color(self): """ Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may b...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 143, 4 ]
[ 196, 28 ]
python
en
['en', 'error', 'th']
False
AngularAxis.direction
(self)
Sets the direction corresponding to positive angles. The 'direction' property is an enumeration that may be specified as: - One of the following enumeration values: ['counterclockwise', 'clockwise'] Returns ------- Any
Sets the direction corresponding to positive angles. The 'direction' property is an enumeration that may be specified as: - One of the following enumeration values: ['counterclockwise', 'clockwise']
def direction(self): """ Sets the direction corresponding to positive angles. The 'direction' property is an enumeration that may be specified as: - One of the following enumeration values: ['counterclockwise', 'clockwise'] Returns ------- ...
[ "def", "direction", "(", "self", ")", ":", "return", "self", "[", "\"direction\"", "]" ]
[ 205, 4 ]
[ 217, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 226, 4 ]
[ 255, 28 ]
python
en
['en', 'error', 'th']
False
AngularAxis.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 264, 4 ]
[ 280, 37 ]
python
en
['en', 'error', 'th']
False
AngularAxis.gridcolor
(self)
Sets the color of the grid lines. The 'gridcolor' 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...
Sets the color of the grid lines. The 'gridcolor' 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...
def gridcolor(self): """ Sets the color of the grid lines. The 'gridcolor' 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/h...
[ "def", "gridcolor", "(", "self", ")", ":", "return", "self", "[", "\"gridcolor\"", "]" ]
[ 289, 4 ]
[ 339, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.gridwidth
(self)
Sets the width (in px) of the grid lines. The 'gridwidth' 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 grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def gridwidth(self): """ Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["gridwidth"]
[ "def", "gridwidth", "(", "self", ")", ":", "return", "self", "[", "\"gridwidth\"", "]" ]
[ 348, 4 ]
[ 359, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.hoverformat
(self)
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def hoverformat(self): """ Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://githu...
[ "def", "hoverformat", "(", "self", ")", ":", "return", "self", "[", "\"hoverformat\"", "]" ]
[ 368, 4 ]
[ 388, 34 ]
python
en
['en', 'error', 'th']
False
AngularAxis.layer
(self)
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
def layer(self): """ Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with...
[ "def", "layer", "(", "self", ")", ":", "return", "self", "[", "\"layer\"", "]" ]
[ 397, 4 ]
[ 414, 28 ]
python
en
['en', 'error', 'th']
False
AngularAxis.linecolor
(self)
Sets the axis line color. The 'linecolor' 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%)') ...
Sets the axis line color. The 'linecolor' 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%)') ...
def linecolor(self): """ Sets the axis line color. The 'linecolor' 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 stri...
[ "def", "linecolor", "(", "self", ")", ":", "return", "self", "[", "\"linecolor\"", "]" ]
[ 423, 4 ]
[ 473, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.linewidth
(self)
Sets the width (in px) of the axis line. The 'linewidth' 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 axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def linewidth(self): """ Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["linewidth"]
[ "def", "linewidth", "(", "self", ")", ":", "return", "self", "[", "\"linewidth\"", "]" ]
[ 482, 4 ]
[ 493, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 502, 4 ]
[ 517, 29 ]
python
en
['en', 'error', 'th']
False
AngularAxis.period
(self)
Set the angular period. Has an effect only when `angularaxis.type` is "category". The 'period' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Set the angular period. Has an effect only when `angularaxis.type` is "category". The 'period' property is a number and may be specified as: - An int or float in the interval [0, inf]
def period(self): """ Set the angular period. Has an effect only when `angularaxis.type` is "category". The 'period' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ ...
[ "def", "period", "(", "self", ")", ":", "return", "self", "[", "\"period\"", "]" ]
[ 526, 4 ]
[ 538, 29 ]
python
en
['en', 'error', 'th']
False
AngularAxis.rotation
(self)
Sets that start position (in degrees) of the angular axis By default, polar subplots with `direction` set to "counterclockwise" get a `rotation` of 0 which corresponds to due East (like what mathematicians prefer). In turn, polar with `direction` set to "clockwise" get a rotatio...
Sets that start position (in degrees) of the angular axis By default, polar subplots with `direction` set to "counterclockwise" get a `rotation` of 0 which corresponds to due East (like what mathematicians prefer). In turn, polar with `direction` set to "clockwise" get a rotatio...
def rotation(self): """ Sets that start position (in degrees) of the angular axis By default, polar subplots with `direction` set to "counterclockwise" get a `rotation` of 0 which corresponds to due East (like what mathematicians prefer). In turn, polar with `direction` s...
[ "def", "rotation", "(", "self", ")", ":", "return", "self", "[", "\"rotation\"", "]" ]
[ 547, 4 ]
[ 565, 31 ]
python
en
['en', 'error', 'th']
False
AngularAxis.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 574, 4 ]
[ 585, 40 ]
python
en
['en', 'error', 'th']
False
AngularAxis.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 594, 4 ]
[ 609, 35 ]
python
en
['en', 'error', 'th']
False
AngularAxis.showgrid
(self)
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False)
def showgrid(self): """ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool """ return ...
[ "def", "showgrid", "(", "self", ")", ":", "return", "self", "[", "\"showgrid\"", "]" ]
[ 618, 4 ]
[ 630, 31 ]
python
en
['en', 'error', 'th']
False