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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Command._optimize | (self) |
Optimize the key and aliases for lookups.
|
Optimize the key and aliases for lookups.
| def _optimize(self):
"""
Optimize the key and aliases for lookups.
"""
# optimization - a set is much faster to match against than a list
self._matchset = set([self.key] + self.aliases)
# optimization for looping over keys+aliases
self._keyaliases = tuple(self._ma... | [
"def",
"_optimize",
"(",
"self",
")",
":",
"# optimization - a set is much faster to match against than a list",
"self",
".",
"_matchset",
"=",
"set",
"(",
"[",
"self",
".",
"key",
"]",
"+",
"self",
".",
"aliases",
")",
"# optimization for looping over keys+aliases",
... | [
230,
4
] | [
237,
48
] | python | en | ['en', 'error', 'th'] | False |
Command.set_key | (self, new_key) |
Update key.
Args:
new_key (str): The new key.
Notes:
This is necessary to use to make sure the optimization
caches are properly updated as well.
|
Update key. | def set_key(self, new_key):
"""
Update key.
Args:
new_key (str): The new key.
Notes:
This is necessary to use to make sure the optimization
caches are properly updated as well.
"""
self.key = new_key.lower()
self._optimize() | [
"def",
"set_key",
"(",
"self",
",",
"new_key",
")",
":",
"self",
".",
"key",
"=",
"new_key",
".",
"lower",
"(",
")",
"self",
".",
"_optimize",
"(",
")"
] | [
239,
4
] | [
252,
24
] | python | en | ['en', 'error', 'th'] | False |
Command.set_aliases | (self, new_aliases) |
Replace aliases with new ones.
Args:
new_aliases (str or list): Either a ;-separated string
or a list of aliases. These aliases will replace the
existing ones, if any.
Notes:
This is necessary to use to make sure the optimization
... |
Replace aliases with new ones. | def set_aliases(self, new_aliases):
"""
Replace aliases with new ones.
Args:
new_aliases (str or list): Either a ;-separated string
or a list of aliases. These aliases will replace the
existing ones, if any.
Notes:
This is necessa... | [
"def",
"set_aliases",
"(",
"self",
",",
"new_aliases",
")",
":",
"if",
"isinstance",
"(",
"new_aliases",
",",
"basestring",
")",
":",
"new_aliases",
"=",
"new_aliases",
".",
"split",
"(",
"';'",
")",
"aliases",
"=",
"(",
"str",
"(",
"alias",
")",
".",
... | [
254,
4
] | [
272,
24
] | python | en | ['en', 'error', 'th'] | False |
Command.match | (self, cmdname) |
This is called by the system when searching the available commands,
in order to determine if this is the one we wanted. cmdname was
previously extracted from the raw string by the system.
Args:
cmdname (str): Always lowercase when reaching this point.
Returns:
... |
This is called by the system when searching the available commands,
in order to determine if this is the one we wanted. cmdname was
previously extracted from the raw string by the system. | def match(self, cmdname):
"""
This is called by the system when searching the available commands,
in order to determine if this is the one we wanted. cmdname was
previously extracted from the raw string by the system.
Args:
cmdname (str): Always lowercase when reachi... | [
"def",
"match",
"(",
"self",
",",
"cmdname",
")",
":",
"return",
"cmdname",
"in",
"self",
".",
"_matchset"
] | [
274,
4
] | [
287,
40
] | python | en | ['en', 'error', 'th'] | False |
Command.access | (self, srcobj, access_type="cmd", default=False) |
This hook is called by the cmdhandler to determine if srcobj
is allowed to execute this command. It should return a boolean
value and is not normally something that need to be changed since
it's using the Evennia permission system directly.
Args:
srcobj (Object): Ob... |
This hook is called by the cmdhandler to determine if srcobj
is allowed to execute this command. It should return a boolean
value and is not normally something that need to be changed since
it's using the Evennia permission system directly. | def access(self, srcobj, access_type="cmd", default=False):
"""
This hook is called by the cmdhandler to determine if srcobj
is allowed to execute this command. It should return a boolean
value and is not normally something that need to be changed since
it's using the Evennia per... | [
"def",
"access",
"(",
"self",
",",
"srcobj",
",",
"access_type",
"=",
"\"cmd\"",
",",
"default",
"=",
"False",
")",
":",
"return",
"self",
".",
"lockhandler",
".",
"check",
"(",
"srcobj",
",",
"access_type",
",",
"default",
"=",
"default",
")"
] | [
289,
4
] | [
303,
75
] | python | en | ['en', 'error', 'th'] | False |
Command.msg | (self, text=None, to_obj=None, from_obj=None,
session=None, **kwargs) |
This is a shortcut instead of calling msg() directly on an
object - it will detect if caller is an Object or an Account and
also appends self.session automatically if self.msg_all_sessions is False.
Args:
text (str, optional): Text string of message to send.
to_... |
This is a shortcut instead of calling msg() directly on an
object - it will detect if caller is an Object or an Account and
also appends self.session automatically if self.msg_all_sessions is False. | def msg(self, text=None, to_obj=None, from_obj=None,
session=None, **kwargs):
"""
This is a shortcut instead of calling msg() directly on an
object - it will detect if caller is an Object or an Account and
also appends self.session automatically if self.msg_all_sessions is Fa... | [
"def",
"msg",
"(",
"self",
",",
"text",
"=",
"None",
",",
"to_obj",
"=",
"None",
",",
"from_obj",
"=",
"None",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"from_obj",
"=",
"from_obj",
"or",
"self",
".",
"caller",
"to_obj",
"=",
... | [
305,
4
] | [
332,
75
] | python | en | ['en', 'error', 'th'] | False |
Command.execute_cmd | (self, raw_string, session=None, obj=None, **kwargs) |
A shortcut of execute_cmd on the caller. It appends the
session automatically.
Args:
raw_string (str): Execute this string as a command input.
session (Session, optional): If not given, the current command's Session will be used.
obj (Object or Account, opti... |
A shortcut of execute_cmd on the caller. It appends the
session automatically. | def execute_cmd(self, raw_string, session=None, obj=None, **kwargs):
"""
A shortcut of execute_cmd on the caller. It appends the
session automatically.
Args:
raw_string (str): Execute this string as a command input.
session (Session, optional): If not given, the ... | [
"def",
"execute_cmd",
"(",
"self",
",",
"raw_string",
",",
"session",
"=",
"None",
",",
"obj",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"obj",
"=",
"self",
".",
"caller",
"if",
"obj",
"is",
"None",
"else",
"obj",
"session",
"=",
"self",
".",... | [
334,
4
] | [
354,
62
] | python | en | ['en', 'error', 'th'] | False |
Command.at_pre_cmd | (self) |
This hook is called before self.parse() on all commands. If
this hook returns anything but False/None, the command
sequence is aborted.
|
This hook is called before self.parse() on all commands. If
this hook returns anything but False/None, the command
sequence is aborted. | def at_pre_cmd(self):
"""
This hook is called before self.parse() on all commands. If
this hook returns anything but False/None, the command
sequence is aborted.
"""
pass | [
"def",
"at_pre_cmd",
"(",
"self",
")",
":",
"pass"
] | [
358,
4
] | [
365,
12
] | python | en | ['en', 'error', 'th'] | False |
Command.at_post_cmd | (self) |
This hook is called after the command has finished executing
(after self.func()).
|
This hook is called after the command has finished executing
(after self.func()). | def at_post_cmd(self):
"""
This hook is called after the command has finished executing
(after self.func()).
"""
pass | [
"def",
"at_post_cmd",
"(",
"self",
")",
":",
"pass"
] | [
367,
4
] | [
373,
12
] | python | en | ['en', 'error', 'th'] | False |
Command.parse | (self) |
Once the cmdhandler has identified this as the command we
want, this function is run. If many of your commands have a
similar syntax (for example 'cmd arg1 = arg2') you should
simply define this once and just let other commands of the
same form inherit from this. See the docstri... |
Once the cmdhandler has identified this as the command we
want, this function is run. If many of your commands have a
similar syntax (for example 'cmd arg1 = arg2') you should
simply define this once and just let other commands of the
same form inherit from this. See the docstri... | def parse(self):
"""
Once the cmdhandler has identified this as the command we
want, this function is run. If many of your commands have a
similar syntax (for example 'cmd arg1 = arg2') you should
simply define this once and just let other commands of the
same form inheri... | [
"def",
"parse",
"(",
"self",
")",
":",
"pass"
] | [
375,
4
] | [
386,
12
] | python | en | ['en', 'error', 'th'] | False |
Command.func | (self) |
This is the actual executing part of the command. It is
called directly after self.parse(). See the docstring of this
module for which object properties are available (beyond those
set in self.parse())
|
This is the actual executing part of the command. It is
called directly after self.parse(). See the docstring of this
module for which object properties are available (beyond those
set in self.parse()) | def func(self):
"""
This is the actual executing part of the command. It is
called directly after self.parse(). See the docstring of this
module for which object properties are available (beyond those
set in self.parse())
"""
# a simple test command to show the ... | [
"def",
"func",
"(",
"self",
")",
":",
"# a simple test command to show the available properties",
"string",
"=",
"\"-\"",
"*",
"50",
"string",
"+=",
"\"\\n|w%s|n - Command variables from evennia:\\n\"",
"%",
"self",
".",
"key",
"string",
"+=",
"\"-\"",
"*",
"50",
"str... | [
388,
4
] | [
411,
31
] | python | en | ['en', 'error', 'th'] | False |
Command.get_extra_info | (self, caller, **kwargs) |
Display some extra information that may help distinguish this
command from others, for instance, in a disambiguity prompt.
If this command is a potential match in an ambiguous
situation, one distinguishing feature may be its attachment to
a nearby object, so we include this if ... |
Display some extra information that may help distinguish this
command from others, for instance, in a disambiguity prompt. | def get_extra_info(self, caller, **kwargs):
"""
Display some extra information that may help distinguish this
command from others, for instance, in a disambiguity prompt.
If this command is a potential match in an ambiguous
situation, one distinguishing feature may be its attach... | [
"def",
"get_extra_info",
"(",
"self",
",",
"caller",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"hasattr",
"(",
"self",
",",
"'obj'",
")",
"and",
"self",
".",
"obj",
"and",
"self",
".",
"obj",
"!=",
"caller",
":",
"return",
"\" (%s)\"",
"%",
"self",
... | [
413,
4
] | [
433,
17
] | python | en | ['en', 'error', 'th'] | False |
Command.get_help | (self, caller, cmdset) |
Return the help message for this command and this caller.
By default, return self.__doc__ (the docstring just under
the class definition). You can override this behavior,
though, and even customize it depending on the caller, or other
commands the caller can use.
Args... |
Return the help message for this command and this caller. | def get_help(self, caller, cmdset):
"""
Return the help message for this command and this caller.
By default, return self.__doc__ (the docstring just under
the class definition). You can override this behavior,
though, and even customize it depending on the caller, or other
... | [
"def",
"get_help",
"(",
"self",
",",
"caller",
",",
"cmdset",
")",
":",
"return",
"self",
".",
"__doc__"
] | [
435,
4
] | [
452,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.color | (self) |
Sets the aggregation data.
The 'color' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the aggregation data.
The 'color' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def color(self):
"""
Sets the aggregation data.
The 'color' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["color"] | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
26,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.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\"",
"]"
] | [
35,
4
] | [
46,
31
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, color=None, colorsrc=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.histogram2dcontour.Marker`
color
Sets the aggregation data.
co... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.histogram2dcontour.Marker`
color
Sets the aggregation data.
co... | def __init__(self, arg=None, color=None, colorsrc=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.histogram2dc... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"colorsrc",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"marker\"",
")",
"if",
"\"_parent... | [
64,
4
] | [
128,
34
] | python | en | ['en', 'error', 'th'] | False |
Y.opacity | (self) |
Sets the projection color.
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 projection color.
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 projection color.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
return self["opacity"] | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
15,
4
] | [
26,
30
] | python | en | ['en', 'error', 'th'] | False |
Y.scale | (self) |
Sets the scale factor determining the size of the projection
marker points.
The 'scale' property is a number and may be specified as:
- An int or float in the interval [0, 10]
Returns
-------
int|float
|
Sets the scale factor determining the size of the projection
marker points.
The 'scale' property is a number and may be specified as:
- An int or float in the interval [0, 10] | def scale(self):
"""
Sets the scale factor determining the size of the projection
marker points.
The 'scale' property is a number and may be specified as:
- An int or float in the interval [0, 10]
Returns
-------
int|float
"""
retur... | [
"def",
"scale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"scale\"",
"]"
] | [
35,
4
] | [
47,
28
] | python | en | ['en', 'error', 'th'] | False |
Y.show | (self) |
Sets whether or not projections are shown along the y axis.
The 'show' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Sets whether or not projections are shown along the y axis.
The 'show' property must be specified as a bool
(either True, or False) | def show(self):
"""
Sets whether or not projections are shown along the y axis.
The 'show' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["show"] | [
"def",
"show",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"show\"",
"]"
] | [
56,
4
] | [
67,
27
] | python | en | ['en', 'error', 'th'] | False |
Y.__init__ | (self, arg=None, opacity=None, scale=None, show=None, **kwargs) |
Construct a new Y object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter3d.projection.Y`
opacity
Sets the projection color.
scale
... |
Construct a new Y object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter3d.projection.Y`
opacity
Sets the projection color.
scale
... | def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs):
"""
Construct a new Y object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"opacity",
"=",
"None",
",",
"scale",
"=",
"None",
",",
"show",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Y",
",",
"self",
")",
".",
"__init__",
"(",
"\"y\"",
")... | [
88,
4
] | [
159,
34
] | python | en | ['en', 'error', 'th'] | False |
_path | (opt: Opt) |
Return appropriate datapaths.
:param opt:
options
:return (data path, personalities path, image_path):
path to data, personalities, and images
|
Return appropriate datapaths. | def _path(opt: Opt) -> Tuple[str, str, str]:
"""
Return appropriate datapaths.
:param opt:
options
:return (data path, personalities path, image_path):
path to data, personalities, and images
"""
build(opt)
dt = opt['datatype'].split(':')[0]
if dt in ['train', 'valid', ... | [
"def",
"_path",
"(",
"opt",
":",
"Opt",
")",
"->",
"Tuple",
"[",
"str",
",",
"str",
",",
"str",
"]",
":",
"build",
"(",
"opt",
")",
"dt",
"=",
"opt",
"[",
"'datatype'",
"]",
".",
"split",
"(",
"':'",
")",
"[",
"0",
"]",
"if",
"dt",
"in",
"[... | [
25,
0
] | [
49,
57
] | python | en | ['en', 'error', 'th'] | False |
get_category_map | (personalities: Dict[str, List[str]]) |
Map personalities to polarity categories: "positive/neutral" and "negative".
Given a dictionary mapping Image-Chat categories (positive/neutral/negative) to
personalities, return a dictionary mapping each personality to its category.
Categories are merged into only two buckets: "positive/neutral", for... |
Map personalities to polarity categories: "positive/neutral" and "negative". | def get_category_map(personalities: Dict[str, List[str]]) -> Dict[str, str]:
"""
Map personalities to polarity categories: "positive/neutral" and "negative".
Given a dictionary mapping Image-Chat categories (positive/neutral/negative) to
personalities, return a dictionary mapping each personality to it... | [
"def",
"get_category_map",
"(",
"personalities",
":",
"Dict",
"[",
"str",
",",
"List",
"[",
"str",
"]",
"]",
")",
"->",
"Dict",
"[",
"str",
",",
"str",
"]",
":",
"category_map",
"=",
"{",
"personality",
":",
"_get_final_category",
"(",
"category",
")",
... | [
390,
0
] | [
408,
23
] | python | en | ['en', 'error', 'th'] | False |
_get_final_category | (category: str) |
Given the input raw category label, return the final one.
|
Given the input raw category label, return the final one.
| def _get_final_category(category: str) -> str:
"""
Given the input raw category label, return the final one.
"""
if category in ['positive', 'neutral']:
return 'positive/neutral'
elif category == 'negative':
return 'negative'
else:
raise ValueError(f'Category "{category}"... | [
"def",
"_get_final_category",
"(",
"category",
":",
"str",
")",
"->",
"str",
":",
"if",
"category",
"in",
"[",
"'positive'",
",",
"'neutral'",
"]",
":",
"return",
"'positive/neutral'",
"elif",
"category",
"==",
"'negative'",
":",
"return",
"'negative'",
"else"... | [
411,
0
] | [
420,
64
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTeacher._setup_data | (self, data_path: str, personalities_data_path: str) |
Load the data.
|
Load the data.
| def _setup_data(self, data_path: str, personalities_data_path: str):
"""
Load the data.
"""
print('loading: ' + data_path)
with PathManager.open(data_path) as f:
self.data = json.load(f)
with PathManager.open(personalities_data_path) as f:
self.per... | [
"def",
"_setup_data",
"(",
"self",
",",
"data_path",
":",
"str",
",",
"personalities_data_path",
":",
"str",
")",
":",
"print",
"(",
"'loading: '",
"+",
"data_path",
")",
"with",
"PathManager",
".",
"open",
"(",
"data_path",
")",
"as",
"f",
":",
"self",
... | [
118,
4
] | [
126,
45
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTeacher.reset | (self) |
Override to Reset self.example.
|
Override to Reset self.example.
| def reset(self):
"""
Override to Reset self.example.
"""
super().reset()
self.example = None | [
"def",
"reset",
"(",
"self",
")",
":",
"super",
"(",
")",
".",
"reset",
"(",
")",
"self",
".",
"example",
"=",
"None"
] | [
128,
4
] | [
133,
27
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTeacher.next_example | (self) |
Returns the next example from this dataset after starting to queue up the next
example.
:return (example, epoch done):
returns the next example as well as whether the epoch is done.
|
Returns the next example from this dataset after starting to queue up the next
example. | def next_example(self) -> Tuple[Message, bool]:
"""
Returns the next example from this dataset after starting to queue up the next
example.
:return (example, epoch done):
returns the next example as well as whether the epoch is done.
"""
ready = None
... | [
"def",
"next_example",
"(",
"self",
")",
"->",
"Tuple",
"[",
"Message",
",",
"bool",
"]",
":",
"ready",
"=",
"None",
"load_image",
"=",
"self",
".",
"image_mode",
"!=",
"'no_image_model'",
"and",
"self",
".",
"include_image",
"# pull up the currently queued exam... | [
164,
4
] | [
193,
24
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTestTeacher.reset | (self) |
Reset teacher.
|
Reset teacher.
| def reset(self):
"""
Reset teacher.
"""
super().reset()
self.example = None | [
"def",
"reset",
"(",
"self",
")",
":",
"super",
"(",
")",
".",
"reset",
"(",
")",
"self",
".",
"example",
"=",
"None"
] | [
338,
4
] | [
343,
27
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTestTeacher.num_episodes | (self) |
Return number of episodes.
|
Return number of episodes.
| def num_episodes(self):
"""
Return number of episodes.
"""
return len(self.image_features) | [
"def",
"num_episodes",
"(",
"self",
")",
":",
"return",
"len",
"(",
"self",
".",
"image_features",
")"
] | [
345,
4
] | [
349,
39
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTestTeacher.num_examples | (self) |
Return number of examples.
|
Return number of examples.
| def num_examples(self):
"""
Return number of examples.
"""
return len(self.image_features) | [
"def",
"num_examples",
"(",
"self",
")",
":",
"return",
"len",
"(",
"self",
".",
"image_features",
")"
] | [
351,
4
] | [
355,
39
] | python | en | ['en', 'error', 'th'] | False |
ImageChatTestTeacher.get | (self, episode_idx, entry_idx=0) |
Get an example.
:param episode_idx:
index of episode in self.data
:param entry_idx:
optional, which entry in the episode to get
:return:
an example
|
Get an example. | def get(self, episode_idx, entry_idx=0):
"""
Get an example.
:param episode_idx:
index of episode in self.data
:param entry_idx:
optional, which entry in the episode to get
:return:
an example
"""
data = self.data[episode_idx]... | [
"def",
"get",
"(",
"self",
",",
"episode_idx",
",",
"entry_idx",
"=",
"0",
")",
":",
"data",
"=",
"self",
".",
"data",
"[",
"episode_idx",
"]",
"personality",
",",
"text",
"=",
"data",
"[",
"'dialog'",
"]",
"[",
"entry_idx",
"]",
"episode_done",
"=",
... | [
357,
4
] | [
383,
21
] | python | en | ['en', 'error', 'th'] | False |
Marker.colors | (self) |
Sets the color of each sector. If not specified, the default
trace color set is used to pick the sector colors.
The 'colors' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the color of each sector. If not specified, the default
trace color set is used to pick the sector colors.
The 'colors' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def colors(self):
"""
Sets the color of each sector. If not specified, the default
trace color set is used to pick the sector colors.
The 'colors' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
... | [
"def",
"colors",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colors\"",
"]"
] | [
15,
4
] | [
27,
29
] | python | en | ['en', 'error', 'th'] | False |
Marker.colorssrc | (self) |
Sets the source reference on Chart Studio Cloud for colors .
The 'colorssrc' 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 colors .
The 'colorssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorssrc(self):
"""
Sets the source reference on Chart Studio Cloud for colors .
The 'colorssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorssrc"] | [
"def",
"colorssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorssrc\"",
"]"
] | [
36,
4
] | [
47,
32
] | python | en | ['en', 'error', 'th'] | False |
Marker.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.funnelarea.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.funnelarea.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.funnelarea.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported d... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
56,
4
] | [
83,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, colors=None, colorssrc=None, line=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnelarea.Marker`
colors
Sets the color of each sector. If not specif... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnelarea.Marker`
colors
Sets the color of each sector. If not specif... | def __init__(self, arg=None, colors=None, colorssrc=None, line=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"colors",
"=",
"None",
",",
"colorssrc",
"=",
"None",
",",
"line",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"ma... | [
106,
4
] | [
179,
34
] | python | en | ['en', 'error', 'th'] | False |
create | (body) | Create a dashboard. | Create a dashboard. | def create(body):
"""Create a dashboard."""
url = build_url(RESOURCE)
return request("post", url, json=body) | [
"def",
"create",
"(",
"body",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
")",
"return",
"request",
"(",
"\"post\"",
",",
"url",
",",
"json",
"=",
"body",
")"
] | [
13,
0
] | [
16,
42
] | python | en | ['pt', 'gd', 'en'] | False |
list | () | Returns the list of all users' dashboards. | Returns the list of all users' dashboards. | def list():
"""Returns the list of all users' dashboards."""
url = build_url(RESOURCE)
return request("get", url) | [
"def",
"list",
"(",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
")",
"return",
"request",
"(",
"\"get\"",
",",
"url",
")"
] | [
19,
0
] | [
22,
30
] | python | en | ['en', 'en', 'en'] | True |
retrieve | (fid) | Retrieve a dashboard from Plotly. | Retrieve a dashboard from Plotly. | def retrieve(fid):
"""Retrieve a dashboard from Plotly."""
url = build_url(RESOURCE, id=fid)
return request("get", url) | [
"def",
"retrieve",
"(",
"fid",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
")",
"return",
"request",
"(",
"\"get\"",
",",
"url",
")"
] | [
25,
0
] | [
28,
30
] | python | en | ['en', 'ga', 'en'] | True |
update | (fid, content) | Completely update the writable. | Completely update the writable. | def update(fid, content):
"""Completely update the writable."""
url = build_url(RESOURCE, id=fid)
return request("put", url, json=content) | [
"def",
"update",
"(",
"fid",
",",
"content",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
")",
"return",
"request",
"(",
"\"put\"",
",",
"url",
",",
"json",
"=",
"content",
")"
] | [
31,
0
] | [
34,
44
] | python | en | ['en', 'en', 'en'] | True |
schema | () | Retrieve the dashboard schema. | Retrieve the dashboard schema. | def schema():
"""Retrieve the dashboard schema."""
url = build_url(RESOURCE, route="schema")
return request("get", url) | [
"def",
"schema",
"(",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"route",
"=",
"\"schema\"",
")",
"return",
"request",
"(",
"\"get\"",
",",
"url",
")"
] | [
37,
0
] | [
40,
30
] | python | en | ['en', 'de', 'en'] | True |
Line.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`line.colorscale`. Has an effect only if in `line.color`is set
to a numerical array. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`line.colorscale`. Has an effect only if in `line.color`is set
to a numerical array. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`line.colorscale`. Has an effect only if in `line.color`is set
to a numerical array. In case `colorscale` is unspecified or
`autocolo... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
30,
4
] | [
47,
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 `line.color`) or the bounds
set in `line.cmin` and `line.cmax` Has an effect only if in
`line.color`is set to a numerical array. Defaults to `false`
when `line.cmin` and `line.cmax` a... |
Determines whether or not the color domain is computed with
respect to the input data (here in `line.color`) or the bounds
set in `line.cmin` and `line.cmax` Has an effect only if in
`line.color`is set to a numerical array. Defaults to `false`
when `line.cmin` and `line.cmax` a... | def cauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here in `line.color`) or the bounds
set in `line.cmin` and `line.cmax` Has an effect only if in
`line.color`is set to a numerical array. Defaults to `false`
when `... | [
"def",
"cauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cauto\"",
"]"
] | [
56,
4
] | [
71,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.cmax | (self) |
Sets the upper bound of the color domain. Has an effect only if
in `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmin` must
be set as well.
The 'cmax' property is a number and may be specified as:
- ... |
Sets the upper bound of the color domain. Has an effect only if
in `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmin` must
be set as well.
The 'cmax' property is a number and may be specified as:
- ... | def cmax(self):
"""
Sets the upper bound of the color domain. Has an effect only if
in `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmin` must
be set as well.
The 'cmax' property is a number and may be... | [
"def",
"cmax",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmax\"",
"]"
] | [
80,
4
] | [
94,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.cmid | (self) |
Sets the mid-point of the color domain by scaling `line.cmin`
and/or `line.cmax` to be equidistant to this point. Has an
effect only if in `line.color`is set to a numerical array.
Value should have the same units as in `line.color`. Has no
effect when `line.cauto` is `false`.
... |
Sets the mid-point of the color domain by scaling `line.cmin`
and/or `line.cmax` to be equidistant to this point. Has an
effect only if in `line.color`is set to a numerical array.
Value should have the same units as in `line.color`. Has no
effect when `line.cauto` is `false`.
... | def cmid(self):
"""
Sets the mid-point of the color domain by scaling `line.cmin`
and/or `line.cmax` to be equidistant to this point. Has an
effect only if in `line.color`is set to a numerical array.
Value should have the same units as in `line.color`. Has no
effect when ... | [
"def",
"cmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmid\"",
"]"
] | [
103,
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 `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmax` must
be set as well.
The 'cmin' property is a number and may be specified as:
- ... |
Sets the lower bound of the color domain. Has an effect only if
in `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmax` must
be set as well.
The 'cmin' property is a number and may be specified as:
- ... | def cmin(self):
"""
Sets the lower bound of the color domain. Has an effect only if
in `line.color`is set to a numerical array. Value should have
the same units as in `line.color` and if set, `line.cmax` must
be set as well.
The 'cmin' property is a number and may be... | [
"def",
"cmin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmin\"",
"]"
] | [
127,
4
] | [
141,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.color | (self) |
Sets thelinecolor. 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 `line.cmin`
and `line.cmax` if set.
The 'color' property is a color and may be specified as:
... |
Sets thelinecolor. 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 `line.cmin`
and `line.cmax` if set.
The 'color' property is a color and may be specified as:
... | def color(self):
"""
Sets thelinecolor. 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 `line.cmin`
and `line.cmax` if set.
The 'color' property is a color and ... | [
"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.colorbar | (self) |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.scatter3d.line.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.scatter3d.line.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.scatter3d.line.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
... | [
"def",
"colorbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorbar\"",
"]"
] | [
242,
4
] | [
469,
31
] | python | en | ['en', 'error', 'th'] | False |
Line.colorscale | (self) |
Sets the colorscale. Has an effect only if in `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 (1) val... |
Sets the colorscale. Has an effect only if in `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 (1) val... | def colorscale(self):
"""
Sets the colorscale. Has an effect only if in `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
t... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
478,
4
] | [
522,
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\"",
"]"
] | [
531,
4
] | [
542,
31
] | python | en | ['en', 'error', 'th'] | False |
Line.dash | (self) |
Sets the dash style of the lines.
The 'dash' property is an enumeration that may be specified as:
- One of the following enumeration values:
['solid', 'dot', 'dash', 'longdash', 'dashdot',
'longdashdot']
Returns
-------
Any
... |
Sets the dash style of the lines.
The 'dash' property is an enumeration that may be specified as:
- One of the following enumeration values:
['solid', 'dot', 'dash', 'longdash', 'dashdot',
'longdashdot'] | def dash(self):
"""
Sets the dash style of the lines.
The 'dash' property is an enumeration that may be specified as:
- One of the following enumeration values:
['solid', 'dot', 'dash', 'longdash', 'dashdot',
'longdashdot']
Returns
... | [
"def",
"dash",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dash\"",
"]"
] | [
551,
4
] | [
564,
27
] | python | en | ['en', 'error', 'th'] | False |
Line.reversescale | (self) |
Reverses the color mapping if true. Has an effect only if in
`line.color`is set to a numerical array. If true, `line.cmin`
will correspond to the last color in the array and `line.cmax`
will correspond to the first color.
The 'reversescale' property must be specified as a b... |
Reverses the color mapping if true. Has an effect only if in
`line.color`is set to a numerical array. If true, `line.cmin`
will correspond to the last color in the array and `line.cmax`
will correspond to the first color.
The 'reversescale' property must be specified as a b... | def reversescale(self):
"""
Reverses the color mapping if true. Has an effect only if in
`line.color`is set to a numerical array. If true, `line.cmin`
will correspond to the last color in the array and `line.cmax`
will correspond to the first color.
The 'reversescale... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
573,
4
] | [
587,
35
] | python | en | ['en', 'error', 'th'] | False |
Line.showscale | (self) |
Determines whether or not a colorbar is displayed for this
trace. Has an effect only if in `line.color`is set to a
numerical array.
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. Has an effect only if in `line.color`is set to a
numerical array.
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. Has an effect only if in `line.color`is set to a
numerical array.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
... | [
"def",
"showscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showscale\"",
"]"
] | [
596,
4
] | [
609,
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\"",
"]"
] | [
618,
4
] | [
629,
28
] | 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,
colorbar=None,
colorscale=None,
colorsrc=None,
dash=None,
reversescale=None,
showscale=N... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter3d.Line`
autocolorscale
Determines whether the colorscale is a de... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter3d.Line`
autocolorscale
Determines whether the colorscale is a de... | def __init__(
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
color=None,
coloraxis=None,
colorbar=None,
colorscale=None,
colorsrc=None,
dash=None,
reversescale=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"autocolorscale",
"=",
"None",
",",
"cauto",
"=",
"None",
",",
"cmax",
"=",
"None",
",",
"cmid",
"=",
"None",
",",
"cmin",
"=",
"None",
",",
"color",
"=",
"None",
",",
"coloraxis",
"=",
... | [
722,
4
] | [
927,
34
] | python | en | ['en', 'error', 'th'] | False |
schemas_send_schema | (request: web.BaseRequest) |
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The schema id sent
|
Request handler for sending a credential offer. | async def schemas_send_schema(request: web.BaseRequest):
"""
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The schema id sent
"""
context = request.app["request_context"]
body = await request.json()
schema_name = body.... | [
"async",
"def",
"schemas_send_schema",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"body",
"=",
"await",
"request",
".",
"json",
"(",
")",
"schema_name",
"=",
"body",
"."... | [
100,
0
] | [
125,
54
] | python | en | ['en', 'error', 'th'] | False |
schemas_created | (request: web.BaseRequest) |
Request handler for retrieving schemas that current agent created.
Args:
request: aiohttp request object
Returns:
The identifiers of matching schemas
|
Request handler for retrieving schemas that current agent created. | async def schemas_created(request: web.BaseRequest):
"""
Request handler for retrieving schemas that current agent created.
Args:
request: aiohttp request object
Returns:
The identifiers of matching schemas
"""
context = request.app["request_context"]
storage = await cont... | [
"async",
"def",
"schemas_created",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"storage",
"=",
"await",
"context",
".",
"inject",
"(",
"BaseStorage",
")",
"found",
"=",
"... | [
141,
0
] | [
162,
80
] | python | en | ['en', 'error', 'th'] | False |
schemas_get_schema | (request: web.BaseRequest) |
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The schema details.
|
Request handler for sending a credential offer. | async def schemas_get_schema(request: web.BaseRequest):
"""
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The schema details.
"""
context = request.app["request_context"]
schema_id = request.match_info["id"]
ledger: Ba... | [
"async",
"def",
"schemas_get_schema",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"schema_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
"ledger",
":",
"BaseLe... | [
167,
0
] | [
186,
53
] | 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.post("/schemas", schemas_send_schema)])
app.add_routes([web.get("/schemas/created", schemas_created)])
app.add_routes([web.get("/schemas/{id}", schemas_get_schema)]) | [
"async",
"def",
"register",
"(",
"app",
":",
"web",
".",
"Application",
")",
":",
"app",
".",
"add_routes",
"(",
"[",
"web",
".",
"post",
"(",
"\"/schemas\"",
",",
"schemas_send_schema",
")",
"]",
")",
"app",
".",
"add_routes",
"(",
"[",
"web",
".",
... | [
189,
0
] | [
193,
66
] | python | en | ['en', 'fr', 'en'] | False |
indy_proof_request2indy_requested_creds | (
indy_proof_request: dict,
holder: BaseHolder
) |
Build indy requested-credentials structure.
Given input proof request, use credentials in holder's wallet to
build indy requested credentials structure for input to proof creation.
Args:
indy_proof_request: indy proof request
holder: holder injected into current context
|
Build indy requested-credentials structure. | async def indy_proof_request2indy_requested_creds(
indy_proof_request: dict,
holder: BaseHolder
):
"""
Build indy requested-credentials structure.
Given input proof request, use credentials in holder's wallet to
build indy requested credentials structure for input to proof creation.
Args:
... | [
"async",
"def",
"indy_proof_request2indy_requested_creds",
"(",
"indy_proof_request",
":",
"dict",
",",
"holder",
":",
"BaseHolder",
")",
":",
"req_creds",
"=",
"{",
"\"self_attested_attributes\"",
":",
"{",
"}",
",",
"\"requested_attributes\"",
":",
"{",
"}",
",",
... | [
67,
0
] | [
114,
20
] | python | en | ['en', 'error', 'th'] | False |
Predicate.get | (relation: str) | Return enum instance corresponding to input relation string. | Return enum instance corresponding to input relation string. | def get(relation: str) -> 'Predicate':
"""Return enum instance corresponding to input relation string."""
for pred in Predicate:
if relation.upper() in (
pred.value.fortran, pred.value.wql.upper(), pred.value.math
):
return pred
return Non... | [
"def",
"get",
"(",
"relation",
":",
"str",
")",
"->",
"'Predicate'",
":",
"for",
"pred",
"in",
"Predicate",
":",
"if",
"relation",
".",
"upper",
"(",
")",
"in",
"(",
"pred",
".",
"value",
".",
"fortran",
",",
"pred",
".",
"value",
".",
"wql",
".",
... | [
41,
4
] | [
49,
19
] | python | en | ['en', 'de', 'en'] | True |
Predicate.to_int | (value: Any) |
Cast a value as its equivalent int for indy predicate argument.
Raise ValueError for any input but int, stringified int, or boolean.
Args:
value: value to coerce
|
Cast a value as its equivalent int for indy predicate argument. | def to_int(value: Any) -> int:
"""
Cast a value as its equivalent int for indy predicate argument.
Raise ValueError for any input but int, stringified int, or boolean.
Args:
value: value to coerce
"""
if isinstance(value, (bool, int)):
return in... | [
"def",
"to_int",
"(",
"value",
":",
"Any",
")",
"->",
"int",
":",
"if",
"isinstance",
"(",
"value",
",",
"(",
"bool",
",",
"int",
")",
")",
":",
"return",
"int",
"(",
"value",
")",
"return",
"int",
"(",
"str",
"(",
"value",
")",
")"
] | [
52,
4
] | [
64,
30
] | python | en | ['en', 'error', 'th'] | False |
_get_chosen_title_and_sent | (wizard_entry, k_dict) |
Return a nicely extracted title and chosen sentence.
:return: pair (title, sentence)
|
Return a nicely extracted title and chosen sentence. | def _get_chosen_title_and_sent(wizard_entry, k_dict):
"""
Return a nicely extracted title and chosen sentence.
:return: pair (title, sentence)
"""
title_dict = wizard_entry.get('checked_passage', 'none')
sentence_dict = wizard_entry.get('checked_sentence', {})
title = None
sentence = No... | [
"def",
"_get_chosen_title_and_sent",
"(",
"wizard_entry",
",",
"k_dict",
")",
":",
"title_dict",
"=",
"wizard_entry",
".",
"get",
"(",
"'checked_passage'",
",",
"'none'",
")",
"sentence_dict",
"=",
"wizard_entry",
".",
"get",
"(",
"'checked_sentence'",
",",
"{",
... | [
49,
0
] | [
86,
26
] | python | en | ['en', 'error', 'th'] | False |
Selected.marker | (self) |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict properties:
... |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict properties:
... | def marker(self):
"""
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
S... | [
"def",
"marker",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"marker\"",
"]"
] | [
15,
4
] | [
34,
29
] | python | en | ['en', 'error', 'th'] | False |
Selected.textfont | (self) |
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict propert... |
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict propert... | def textfont(self):
"""
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.barpolar.selected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... | [
"def",
"textfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textfont\"",
"]"
] | [
43,
4
] | [
60,
31
] | python | en | ['en', 'error', 'th'] | False |
Selected.__init__ | (self, arg=None, marker=None, textfont=None, **kwargs) |
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.Selected`
marker
:class:`plotly.graph_objects.barpolar.sele... |
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.Selected`
marker
:class:`plotly.graph_objects.barpolar.sele... | def __init__(self, arg=None, marker=None, textfont=None, **kwargs):
"""
Construct a new Selected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"marker",
"=",
"None",
",",
"textfont",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Selected",
",",
"self",
")",
".",
"__init__",
"(",
"\"selected\"",
")",
"if",
"\"_p... | [
79,
4
] | [
144,
34
] | 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.scatterpolar.Stream`
maxpoints
Sets the maximum number of points to ke... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterpolar.Stream`
maxpoints
Sets the maximum number of points to ke... | 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.scatterpola... | [
"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.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.scatterpolar.marker.Line`
autocolorscale
Determines whether the colorsca... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterpolar.marker.Line`
autocolorscale
Determines whether the colorsca... | 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 |
Contours.coloring | (self) |
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"lines", coloring is done on the contour lines. If "none", no
coloring is applied on this trace.
The 'coloring' property is an enumeration that may be... |
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"lines", coloring is done on the contour lines. If "none", no
coloring is applied on this trace.
The 'coloring' property is an enumeration that may be... | def coloring(self):
"""
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"lines", coloring is done on the contour lines. If "none", no
coloring is applied on this trace.
The 'coloring' propert... | [
"def",
"coloring",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coloring\"",
"]"
] | [
27,
4
] | [
42,
31
] | python | en | ['en', 'error', 'th'] | False |
Contours.end | (self) |
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float | def end(self):
"""
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["end"] | [
"def",
"end",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"end\"",
"]"
] | [
51,
4
] | [
63,
26
] | python | en | ['en', 'error', 'th'] | False |
Contours.labelfont | (self) |
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
- An instance of :class:`plotl... |
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
- An instance of :class:`plotl... | def labelfont(self):
"""
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
... | [
"def",
"labelfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelfont\"",
"]"
] | [
72,
4
] | [
111,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.labelformat | (self) |
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must be specified as:
- A stri... |
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must be specified as:
- A stri... | def labelformat(self):
"""
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must b... | [
"def",
"labelformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelformat\"",
"]"
] | [
120,
4
] | [
135,
34
] | python | en | ['en', 'error', 'th'] | False |
Contours.operation | (self) |
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ")[" keep regions outside `value... |
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ")[" keep regions outside `value... | def operation(self):
"""
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ... | [
"def",
"operation",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"operation\"",
"]"
] | [
144,
4
] | [
164,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.showlabels | (self) |
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False) | def showlabels(self):
"""
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showlabels"] | [
"def",
"showlabels",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlabels\"",
"]"
] | [
173,
4
] | [
185,
33
] | python | en | ['en', 'error', 'th'] | False |
Contours.showlines | (self) |
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False) | def showlines(self):
"""
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
... | [
"def",
"showlines",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlines\"",
"]"
] | [
194,
4
] | [
206,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.size | (self) |
Sets the step between each contour level. Must be positive.
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 step between each contour level. Must be positive.
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 step between each contour level. Must be positive.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
215,
4
] | [
226,
27
] | python | en | ['en', 'error', 'th'] | False |
Contours.start | (self) |
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float | def start(self):
"""
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["start"] | [
"def",
"start",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"start\"",
"]"
] | [
235,
4
] | [
247,
28
] | python | en | ['en', 'error', 'th'] | False |
Contours.type | (self) |
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' property is an enumeration that m... |
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' property is an enumeration that m... | def type(self):
"""
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' proper... | [
"def",
"type",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"type\"",
"]"
] | [
256,
4
] | [
271,
27
] | python | en | ['en', 'error', 'th'] | False |
Contours.value | (self) |
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is expected to be an array of
... |
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is expected to be an array of
... | def value(self):
"""
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is e... | [
"def",
"value",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"value\"",
"]"
] | [
280,
4
] | [
296,
28
] | python | en | ['en', 'error', 'th'] | False |
Contours.__init__ | (
self,
arg=None,
coloring=None,
end=None,
labelfont=None,
labelformat=None,
operation=None,
showlabels=None,
showlines=None,
size=None,
start=None,
type=None,
value=None,
**kwargs
) |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contourcarpet.Contours`
coloring
Determines the coloring method show... |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contourcarpet.Contours`
coloring
Determines the coloring method show... | def __init__(
self,
arg=None,
coloring=None,
end=None,
labelfont=None,
labelformat=None,
operation=None,
showlabels=None,
showlines=None,
size=None,
start=None,
type=None,
value=None,
**kwargs
):
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"coloring",
"=",
"None",
",",
"end",
"=",
"None",
",",
"labelfont",
"=",
"None",
",",
"labelformat",
"=",
"None",
",",
"operation",
"=",
"None",
",",
"showlabels",
"=",
"None",
",",
"showl... | [
363,
4
] | [
527,
34
] | python | en | ['en', 'error', 'th'] | False |
Cone.anchor | (self) |
Sets the cones' anchor with respect to their x/y/z positions.
Note that "cm" denote the cone's center of mass which
corresponds to 1/4 from the tail to tip.
The 'anchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
... |
Sets the cones' anchor with respect to their x/y/z positions.
Note that "cm" denote the cone's center of mass which
corresponds to 1/4 from the tail to tip.
The 'anchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | def anchor(self):
"""
Sets the cones' anchor with respect to their x/y/z positions.
Note that "cm" denote the cone's center of mass which
corresponds to 1/4 from the tail to tip.
The 'anchor' property is an enumeration that may be specified as:
- One of the followi... | [
"def",
"anchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"anchor\"",
"]"
] | [
68,
4
] | [
82,
29
] | python | en | ['en', 'error', 'th'] | False |
Cone.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\"",
"]"
] | [
91,
4
] | [
107,
37
] | python | en | ['en', 'error', 'th'] | False |
Cone.cauto | (self) |
Determines whether or not the color domain is computed with
respect to the input data (here u/v/w norm) 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
(either T... |
Determines whether or not the color domain is computed with
respect to the input data (here u/v/w norm) 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
(either T... | def cauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here u/v/w norm) 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... | [
"def",
"cauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cauto\"",
"]"
] | [
116,
4
] | [
130,
28
] | python | en | ['en', 'error', 'th'] | False |
Cone.cmax | (self) |
Sets the upper bound of the color domain. Value should have the
same units as u/v/w norm 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 u/v/w norm 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 u/v/w norm 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\"",
"]"
] | [
139,
4
] | [
152,
27
] | python | en | ['en', 'error', 'th'] | False |
Cone.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 u/v/w norm. Has no effect when `cauto` is
`false`.
The 'cmid' property is a number and may be specified as:
- An int or floa... |
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 u/v/w norm. Has no effect when `cauto` is
`false`.
The 'cmid' property is a number and may be specified as:
- An int or floa... | 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 u/v/w norm. Has no effect when `cauto` is
`false`.
The 'cmid' property is a number and may be specified as:... | [
"def",
"cmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmid\"",
"]"
] | [
161,
4
] | [
175,
27
] | python | en | ['en', 'error', 'th'] | False |
Cone.cmin | (self) |
Sets the lower bound of the color domain. Value should have the
same units as u/v/w norm 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 u/v/w norm 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 u/v/w norm 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\"",
"]"
] | [
184,
4
] | [
197,
27
] | python | en | ['en', 'error', 'th'] | False |
Cone.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\"",
"]"
] | [
206,
4
] | [
224,
32
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.