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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
InboundSession.clear_response | (self) | Handle when the buffered response message has been delivered. | Handle when the buffered response message has been delivered. | def clear_response(self):
"""Handle when the buffered response message has been delivered."""
self.response_buffer = None
self.response_event.set() | [
"def",
"clear_response",
"(",
"self",
")",
":",
"self",
".",
"response_buffer",
"=",
"None",
"self",
".",
"response_event",
".",
"set",
"(",
")"
] | [
246,
4
] | [
249,
33
] | python | en | ['en', 'en', 'en'] | True |
InboundSession.wait_response | (self) | Wait for a response to be buffered and pack it. | Wait for a response to be buffered and pack it. | async def wait_response(self) -> Union[str, bytes]:
"""Wait for a response to be buffered and pack it."""
while True:
if self._closed:
return
if self.response_buffer:
response = self.response_buffer.enc_payload
if not response:
... | [
"async",
"def",
"wait_response",
"(",
"self",
")",
"->",
"Union",
"[",
"str",
",",
"bytes",
"]",
":",
"while",
"True",
":",
"if",
"self",
".",
"_closed",
":",
"return",
"if",
"self",
".",
"response_buffer",
":",
"response",
"=",
"self",
".",
"response_... | [
251,
4
] | [
267,
44
] | python | en | ['en', 'en', 'en'] | True |
InboundSession.__aenter__ | (self) | Async context manager entry. | Async context manager entry. | async def __aenter__(self):
"""Async context manager entry."""
return self | [
"async",
"def",
"__aenter__",
"(",
"self",
")",
":",
"return",
"self"
] | [
269,
4
] | [
271,
19
] | python | en | ['fr', 'gl', 'en'] | False |
InboundSession.__aexit__ | (self, exc_type, exc_value, exc_tb) | Async context manager entry. | Async context manager entry. | async def __aexit__(self, exc_type, exc_value, exc_tb):
"""Async context manager entry."""
self.close() | [
"async",
"def",
"__aexit__",
"(",
"self",
",",
"exc_type",
",",
"exc_value",
",",
"exc_tb",
")",
":",
"self",
".",
"close",
"(",
")"
] | [
273,
4
] | [
275,
20
] | python | en | ['fr', 'gl', 'en'] | False |
ImageChatTeacher._load_gender_data | (self, opt) |
Get data file.
|
Get data file.
| def _load_gender_data(self, opt):
"""
Get data file.
"""
build(opt)
dt = opt['datatype'].split(':')[0]
folder = os.path.join(
opt['datapath'], 'md_gender', 'data_to_release', 'image_chat'
)
fle = 'engaging_imagechat_gender_captions_hashed.{}.js... | [
"def",
"_load_gender_data",
"(",
"self",
",",
"opt",
")",
":",
"build",
"(",
"opt",
")",
"dt",
"=",
"opt",
"[",
"'datatype'",
"]",
".",
"split",
"(",
"':'",
")",
"[",
"0",
"]",
"folder",
"=",
"os",
".",
"path",
".",
"join",
"(",
"opt",
"[",
"'d... | [
57,
4
] | [
67,
40
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an ins... |
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute.
Parameters
----------
ar... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
Unselected.marker | (self) |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.scattergl.unselected.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.scattergl.unselected.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.scattergl.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.scattergl.unselected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict prop... |
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.scattergl.unselected.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
Supported dict prop... | def textfont(self):
"""
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.scattergl.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.scattergl.Unselected`
marker
:class:`plotly.graph_objects.scatterg... |
Construct a new Unselected object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scattergl.Unselected`
marker
:class:`plotly.graph_objects.scatterg... | 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 |
TimingDecorator.__init__ | (
self,
*,
in_time: Union[str, datetime] = None,
out_time: Union[str, datetime] = None,
stale_time: Union[str, datetime] = None,
expires_time: Union[str, datetime] = None,
delay_milli: int = None,
wait_until_time: Union[str, datetime] = None,
) |
Initialize a TimingDecorator instance.
Args:
in_time: The time the message was received
out_time: The time the message was dispatched
stale_time: When the message should be considered stale
expires_time: When the message should be considered expired
... |
Initialize a TimingDecorator instance. | def __init__(
self,
*,
in_time: Union[str, datetime] = None,
out_time: Union[str, datetime] = None,
stale_time: Union[str, datetime] = None,
expires_time: Union[str, datetime] = None,
delay_milli: int = None,
wait_until_time: Union[str, datetime] = None,
... | [
"def",
"__init__",
"(",
"self",
",",
"*",
",",
"in_time",
":",
"Union",
"[",
"str",
",",
"datetime",
"]",
"=",
"None",
",",
"out_time",
":",
"Union",
"[",
"str",
",",
"datetime",
"]",
"=",
"None",
",",
"stale_time",
":",
"Union",
"[",
"str",
",",
... | [
25,
4
] | [
52,
63
] | python | en | ['en', 'error', 'th'] | False |
Stats.__init__ | (self) | Initialize the Stats instance. | Initialize the Stats instance. | def __init__(self):
"""Initialize the Stats instance."""
self.counts = {}
self.max_time = {}
self.min_time = {}
self.total_time = {} | [
"def",
"__init__",
"(",
"self",
")",
":",
"self",
".",
"counts",
"=",
"{",
"}",
"self",
".",
"max_time",
"=",
"{",
"}",
"self",
".",
"min_time",
"=",
"{",
"}",
"self",
".",
"total_time",
"=",
"{",
"}"
] | [
11,
4
] | [
16,
28
] | python | en | ['en', 'en', 'en'] | True |
Stats.log | (self, name: str, duration: float) | Log an entry in the stats. | Log an entry in the stats. | def log(self, name: str, duration: float):
"""Log an entry in the stats."""
if name in self.counts:
self.counts[name] += 1
self.max_time[name] = max(self.max_time[name], duration)
self.min_time[name] = min(self.min_time[name], duration)
self.total_time[nam... | [
"def",
"log",
"(",
"self",
",",
"name",
":",
"str",
",",
"duration",
":",
"float",
")",
":",
"if",
"name",
"in",
"self",
".",
"counts",
":",
"self",
".",
"counts",
"[",
"name",
"]",
"+=",
"1",
"self",
".",
"max_time",
"[",
"name",
"]",
"=",
"ma... | [
18,
4
] | [
29,
44
] | python | en | ['en', 'en', 'en'] | True |
Stats.extract | (self, names: Sequence[str] = None) | Summarize the stats in a dictionary. | Summarize the stats in a dictionary. | def extract(self, names: Sequence[str] = None) -> dict:
"""Summarize the stats in a dictionary."""
counts = self.counts.copy()
all_names = set(counts)
if names is None:
names = all_names
maxes = self.max_time.copy()
mins = self.min_time.copy()
... | [
"def",
"extract",
"(",
"self",
",",
"names",
":",
"Sequence",
"[",
"str",
"]",
"=",
"None",
")",
"->",
"dict",
":",
"counts",
"=",
"self",
".",
"counts",
".",
"copy",
"(",
")",
"all_names",
"=",
"set",
"(",
"counts",
")",
"if",
"names",
"is",
"No... | [
31,
4
] | [
57,
9
] | python | en | ['en', 'en', 'en'] | True |
Timer.__init__ | (self, collector: "Collector", groups: Sequence[str]) | Initialize the Timer instance. | Initialize the Timer instance. | def __init__(self, collector: "Collector", groups: Sequence[str]):
"""Initialize the Timer instance."""
self.collector = collector
self.groups = groups
self.start_time = None | [
"def",
"__init__",
"(",
"self",
",",
"collector",
":",
"\"Collector\"",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
")",
":",
"self",
".",
"collector",
"=",
"collector",
"self",
".",
"groups",
"=",
"groups",
"self",
".",
"start_time",
"=",
"None"
] | [
63,
4
] | [
67,
30
] | python | en | ['en', 'en', 'en'] | True |
Timer.now | (cls) | Fetch a standard timer value. | Fetch a standard timer value. | def now(cls):
"""Fetch a standard timer value."""
return time.perf_counter() | [
"def",
"now",
"(",
"cls",
")",
":",
"return",
"time",
".",
"perf_counter",
"(",
")"
] | [
70,
4
] | [
72,
34
] | python | en | ['en', 'lb', 'en'] | True |
Timer.start | (self) | Start the timer. | Start the timer. | def start(self) -> "Timer":
"""Start the timer."""
self.start_time = self.now()
return self | [
"def",
"start",
"(",
"self",
")",
"->",
"\"Timer\"",
":",
"self",
".",
"start_time",
"=",
"self",
".",
"now",
"(",
")",
"return",
"self"
] | [
74,
4
] | [
77,
19
] | python | en | ['en', 'no', 'en'] | True |
Timer.stop | (self) | Stop the timer. | Stop the timer. | def stop(self):
"""Stop the timer."""
if self.start_time:
dur = self.now() - self.start_time
for grp in self.groups:
self.collector.log(grp, dur)
self.start_time = None | [
"def",
"stop",
"(",
"self",
")",
":",
"if",
"self",
".",
"start_time",
":",
"dur",
"=",
"self",
".",
"now",
"(",
")",
"-",
"self",
".",
"start_time",
"for",
"grp",
"in",
"self",
".",
"groups",
":",
"self",
".",
"collector",
".",
"log",
"(",
"grp"... | [
79,
4
] | [
85,
30
] | python | en | ['en', 'en', 'en'] | True |
Timer.__enter__ | (self) | Enter the context manager. | Enter the context manager. | def __enter__(self):
"""Enter the context manager."""
return self.start() | [
"def",
"__enter__",
"(",
"self",
")",
":",
"return",
"self",
".",
"start",
"(",
")"
] | [
87,
4
] | [
89,
27
] | python | en | ['en', 'gl', 'en'] | True |
Timer.__exit__ | (self, type, value, tb) | Exit the context manager. | Exit the context manager. | def __exit__(self, type, value, tb):
"""Exit the context manager."""
self.stop() | [
"def",
"__exit__",
"(",
"self",
",",
"type",
",",
"value",
",",
"tb",
")",
":",
"self",
".",
"stop",
"(",
")"
] | [
91,
4
] | [
93,
19
] | python | en | ['en', 'en', 'en'] | True |
Collector.__init__ | (self, *, enabled: bool = True, log_path: str = None) | Initialize the Collector instance. | Initialize the Collector instance. | def __init__(self, *, enabled: bool = True, log_path: str = None):
"""Initialize the Collector instance."""
self._enabled = enabled
self._log_file: TextIO = None
self._log_path = log_path
self._stats = None
self.reset() | [
"def",
"__init__",
"(",
"self",
",",
"*",
",",
"enabled",
":",
"bool",
"=",
"True",
",",
"log_path",
":",
"str",
"=",
"None",
")",
":",
"self",
".",
"_enabled",
"=",
"enabled",
"self",
".",
"_log_file",
":",
"TextIO",
"=",
"None",
"self",
".",
"_lo... | [
99,
4
] | [
105,
20
] | python | en | ['en', 'en', 'en'] | True |
Collector.reset | (self) | Reset the collector's statistics. | Reset the collector's statistics. | def reset(self):
"""Reset the collector's statistics."""
self._stats = Stats()
if self._log_file:
self._log_file.close()
self._log_file = None
if self._log_path:
self._log_file = open(self._log_path, "w") | [
"def",
"reset",
"(",
"self",
")",
":",
"self",
".",
"_stats",
"=",
"Stats",
"(",
")",
"if",
"self",
".",
"_log_file",
":",
"self",
".",
"_log_file",
".",
"close",
"(",
")",
"self",
".",
"_log_file",
"=",
"None",
"if",
"self",
".",
"_log_path",
":",... | [
107,
4
] | [
114,
54
] | python | en | ['en', 'en', 'en'] | True |
Collector.enabled | (self) | Accessor for the collector's enabled property. | Accessor for the collector's enabled property. | def enabled(self) -> bool:
"""Accessor for the collector's enabled property."""
return self._enabled | [
"def",
"enabled",
"(",
"self",
")",
"->",
"bool",
":",
"return",
"self",
".",
"_enabled"
] | [
117,
4
] | [
119,
28
] | python | en | ['en', 'en', 'en'] | True |
Collector.enabled | (self, val: bool) | Setter for the collector's enabled property. | Setter for the collector's enabled property. | def enabled(self, val: bool):
"""Setter for the collector's enabled property."""
self._enabled = val | [
"def",
"enabled",
"(",
"self",
",",
"val",
":",
"bool",
")",
":",
"self",
".",
"_enabled",
"=",
"val"
] | [
122,
4
] | [
124,
27
] | python | en | ['en', 'en', 'en'] | True |
Collector.log | (self, name: str, duration: float) | Log an entry in the statistics if the collector is enabled. | Log an entry in the statistics if the collector is enabled. | def log(self, name: str, duration: float):
"""Log an entry in the statistics if the collector is enabled."""
if self._enabled:
self._stats.log(name, duration)
if self._log_file:
start = time.perf_counter() - duration
self._log_file.write(f"{name} {... | [
"def",
"log",
"(",
"self",
",",
"name",
":",
"str",
",",
"duration",
":",
"float",
")",
":",
"if",
"self",
".",
"_enabled",
":",
"self",
".",
"_stats",
".",
"log",
"(",
"name",
",",
"duration",
")",
"if",
"self",
".",
"_log_file",
":",
"start",
"... | [
126,
4
] | [
132,
76
] | python | en | ['en', 'en', 'en'] | True |
Collector.mark | (self, *names) | Make a custom decorator function for adding to the set of groups. | Make a custom decorator function for adding to the set of groups. | def mark(self, *names):
"""Make a custom decorator function for adding to the set of groups."""
return lambda fn: self(fn, names) | [
"def",
"mark",
"(",
"self",
",",
"*",
"names",
")",
":",
"return",
"lambda",
"fn",
":",
"self",
"(",
"fn",
",",
"names",
")"
] | [
134,
4
] | [
136,
41
] | python | en | ['en', 'en', 'en'] | True |
Collector.wrap | (
self,
obj,
prop_name: Union[str, Sequence[str]],
groups: Sequence[str] = None,
*,
ignore_missing: bool = False,
) | Wrap a method on a class or class instance. | Wrap a method on a class or class instance. | def wrap(
self,
obj,
prop_name: Union[str, Sequence[str]],
groups: Sequence[str] = None,
*,
ignore_missing: bool = False,
):
"""Wrap a method on a class or class instance."""
if not prop_name:
raise ValueError("missing prop_name")
i... | [
"def",
"wrap",
"(",
"self",
",",
"obj",
",",
"prop_name",
":",
"Union",
"[",
"str",
",",
"Sequence",
"[",
"str",
"]",
"]",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
"=",
"None",
",",
"*",
",",
"ignore_missing",
":",
"bool",
"=",
"False",
"... | [
138,
4
] | [
157,
44
] | python | en | ['en', 'en', 'en'] | True |
Collector.wrap_fn | (self, fn, groups: Sequence[str]) | Wrap a function instance to collect timing statistics on execution. | Wrap a function instance to collect timing statistics on execution. | def wrap_fn(self, fn, groups: Sequence[str]):
"""Wrap a function instance to collect timing statistics on execution."""
@functools.wraps(fn)
def wrapped(*args, **kwargs):
with self.timer(*groups):
result = fn(*args, **kwargs)
return result
return... | [
"def",
"wrap_fn",
"(",
"self",
",",
"fn",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
")",
":",
"@",
"functools",
".",
"wraps",
"(",
"fn",
")",
"def",
"wrapped",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"with",
"self",
".",
"ti... | [
159,
4
] | [
168,
22
] | python | en | ['en', 'en', 'en'] | True |
Collector.wrap_coro | (self, fn, groups: Sequence[str]) | Wrap a coroutine instance to collect timing statistics on execution. | Wrap a coroutine instance to collect timing statistics on execution. | def wrap_coro(self, fn, groups: Sequence[str]):
"""Wrap a coroutine instance to collect timing statistics on execution."""
@functools.wraps(fn)
async def wrapped(*args, **kwargs):
with self.timer(*groups):
result = await fn(*args, **kwargs)
return result
... | [
"def",
"wrap_coro",
"(",
"self",
",",
"fn",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
")",
":",
"@",
"functools",
".",
"wraps",
"(",
"fn",
")",
"async",
"def",
"wrapped",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"with",
"self",... | [
170,
4
] | [
179,
22
] | python | en | ['en', 'en', 'en'] | True |
Collector.__call__ | (self, fn, groups: Sequence[str] = None) |
Decorate a function or class method.
Returns: a wrapped function or coroutine with automatic stats collection
|
Decorate a function or class method. | def __call__(self, fn, groups: Sequence[str] = None):
"""
Decorate a function or class method.
Returns: a wrapped function or coroutine with automatic stats collection
"""
groups = set(groups) if groups else set()
if inspect.iscoroutinefunction(fn):
groups.ad... | [
"def",
"__call__",
"(",
"self",
",",
"fn",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
"=",
"None",
")",
":",
"groups",
"=",
"set",
"(",
"groups",
")",
"if",
"groups",
"else",
"set",
"(",
")",
"if",
"inspect",
".",
"iscoroutinefunction",
"(",
... | [
181,
4
] | [
195,
74
] | python | en | ['en', 'error', 'th'] | False |
Collector.timer | (self, *groups) | Create a new timer attached to this collector. | Create a new timer attached to this collector. | def timer(self, *groups):
"""Create a new timer attached to this collector."""
return Timer(self, groups) | [
"def",
"timer",
"(",
"self",
",",
"*",
"groups",
")",
":",
"return",
"Timer",
"(",
"self",
",",
"groups",
")"
] | [
197,
4
] | [
199,
34
] | python | en | ['en', 'en', 'en'] | True |
Collector.results | (self) | Accessor for the current set of collected statistics. | Accessor for the current set of collected statistics. | def results(self) -> dict:
"""Accessor for the current set of collected statistics."""
return self._stats.extract() | [
"def",
"results",
"(",
"self",
")",
"->",
"dict",
":",
"return",
"self",
".",
"_stats",
".",
"extract",
"(",
")"
] | [
202,
4
] | [
204,
36
] | python | en | ['en', 'en', 'en'] | True |
Collector.extract | (self, groups: Sequence[str] = None) | Extract statistics for a specific set of groups. | Extract statistics for a specific set of groups. | def extract(self, groups: Sequence[str] = None) -> dict:
"""Extract statistics for a specific set of groups."""
return self._stats.extract(groups) | [
"def",
"extract",
"(",
"self",
",",
"groups",
":",
"Sequence",
"[",
"str",
"]",
"=",
"None",
")",
"->",
"dict",
":",
"return",
"self",
".",
"_stats",
".",
"extract",
"(",
"groups",
")"
] | [
206,
4
] | [
208,
42
] | python | en | ['en', 'en', 'en'] | True |
AMPClientFactory.__init__ | (self, server) |
Initializes the client factory.
Args:
server (server): server instance.
|
Initializes the client factory. | def __init__(self, server):
"""
Initializes the client factory.
Args:
server (server): server instance.
"""
self.server = server
self.protocol = AMPServerClientProtocol
self.maxDelay = 10
# not really used unless connecting to multiple server... | [
"def",
"__init__",
"(",
"self",
",",
"server",
")",
":",
"self",
".",
"server",
"=",
"server",
"self",
".",
"protocol",
"=",
"AMPServerClientProtocol",
"self",
".",
"maxDelay",
"=",
"10",
"# not really used unless connecting to multiple servers, but",
"# avoids having... | [
25,
4
] | [
38,
28
] | python | en | ['en', 'error', 'th'] | False |
AMPClientFactory.startedConnecting | (self, connector) |
Called when starting to try to connect to the MUD server.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
|
Called when starting to try to connect to the MUD server. | def startedConnecting(self, connector):
"""
Called when starting to try to connect to the MUD server.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
"""
pass | [
"def",
"startedConnecting",
"(",
"self",
",",
"connector",
")",
":",
"pass"
] | [
40,
4
] | [
49,
12
] | python | en | ['en', 'error', 'th'] | False |
AMPClientFactory.buildProtocol | (self, addr) |
Creates an AMPProtocol instance when connecting to the AMP server.
Args:
addr (str): Connection address. Not used.
|
Creates an AMPProtocol instance when connecting to the AMP server. | def buildProtocol(self, addr):
"""
Creates an AMPProtocol instance when connecting to the AMP server.
Args:
addr (str): Connection address. Not used.
"""
self.resetDelay()
self.server.amp_protocol = AMPServerClientProtocol()
self.server.amp_protocol.... | [
"def",
"buildProtocol",
"(",
"self",
",",
"addr",
")",
":",
"self",
".",
"resetDelay",
"(",
")",
"self",
".",
"server",
".",
"amp_protocol",
"=",
"AMPServerClientProtocol",
"(",
")",
"self",
".",
"server",
".",
"amp_protocol",
".",
"factory",
"=",
"self",
... | [
51,
4
] | [
62,
39
] | python | en | ['en', 'error', 'th'] | False |
AMPClientFactory.clientConnectionLost | (self, connector, reason) |
Called when the AMP connection to the MUD server is lost.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connection was lost.
|
Called when the AMP connection to the MUD server is lost. | def clientConnectionLost(self, connector, reason):
"""
Called when the AMP connection to the MUD server is lost.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connection wa... | [
"def",
"clientConnectionLost",
"(",
"self",
",",
"connector",
",",
"reason",
")",
":",
"logger",
".",
"log_info",
"(",
"\"Server disconnected from the portal.\"",
")",
"protocol",
".",
"ReconnectingClientFactory",
".",
"clientConnectionLost",
"(",
"self",
",",
"connec... | [
64,
4
] | [
75,
88
] | python | en | ['en', 'error', 'th'] | False |
AMPClientFactory.clientConnectionFailed | (self, connector, reason) |
Called when an AMP connection attempt to the MUD server fails.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connection failed.
|
Called when an AMP connection attempt to the MUD server fails. | def clientConnectionFailed(self, connector, reason):
"""
Called when an AMP connection attempt to the MUD server fails.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connec... | [
"def",
"clientConnectionFailed",
"(",
"self",
",",
"connector",
",",
"reason",
")",
":",
"logger",
".",
"log_msg",
"(",
"\"Attempting to reconnect to Portal ...\"",
")",
"protocol",
".",
"ReconnectingClientFactory",
".",
"clientConnectionFailed",
"(",
"self",
",",
"co... | [
77,
4
] | [
88,
90
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.connectionMade | (self) |
Called when a new connection is established.
|
Called when a new connection is established. | def connectionMade(self):
"""
Called when a new connection is established.
"""
info_dict = self.factory.server.get_info_dict()
super(AMPServerClientProtocol, self).connectionMade()
# first thing we do is to request the Portal to sync all sessions
# back with the ... | [
"def",
"connectionMade",
"(",
"self",
")",
":",
"info_dict",
"=",
"self",
".",
"factory",
".",
"server",
".",
"get_info_dict",
"(",
")",
"super",
"(",
"AMPServerClientProtocol",
",",
"self",
")",
".",
"connectionMade",
"(",
")",
"# first thing we do is to reques... | [
99,
4
] | [
111,
47
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.data_to_portal | (self, command, sessid, **kwargs) |
Send data across the wire to the Portal
Args:
command (AMP Command): A protocol send command.
sessid (int): A unique Session id.
kwargs (any): Any data to pickle into the command.
Returns:
deferred (deferred or None): A deferred with an errback.... |
Send data across the wire to the Portal | def data_to_portal(self, command, sessid, **kwargs):
"""
Send data across the wire to the Portal
Args:
command (AMP Command): A protocol send command.
sessid (int): A unique Session id.
kwargs (any): Any data to pickle into the command.
Returns:
... | [
"def",
"data_to_portal",
"(",
"self",
",",
"command",
",",
"sessid",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"callRemote",
"(",
"command",
",",
"packed_data",
"=",
"amp",
".",
"dumps",
"(",
"(",
"sessid",
",",
"kwargs",
")",
")",
")... | [
113,
4
] | [
131,
42
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.send_MsgServer2Portal | (self, session, **kwargs) |
Access method - executed on the Server for sending data
to Portal.
Args:
session (Session): Unique Session.
kwargs (any, optiona): Extra data.
|
Access method - executed on the Server for sending data
to Portal. | def send_MsgServer2Portal(self, session, **kwargs):
"""
Access method - executed on the Server for sending data
to Portal.
Args:
session (Session): Unique Session.
kwargs (any, optiona): Extra data.
"""
return self.data_to_portal(amp.MsgServe... | [
"def",
"send_MsgServer2Portal",
"(",
"self",
",",
"session",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"data_to_portal",
"(",
"amp",
".",
"MsgServer2Portal",
",",
"session",
".",
"sessid",
",",
"*",
"*",
"kwargs",
")"
] | [
133,
4
] | [
143,
82
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.send_AdminServer2Portal | (self, session, operation="", **kwargs) |
Administrative access method called by the Server to send an
instruction to the Portal.
Args:
session (Session): Session.
operation (char, optional): Identifier for the server
operation, as defined by the global variables in
`evennia/serv... |
Administrative access method called by the Server to send an
instruction to the Portal. | def send_AdminServer2Portal(self, session, operation="", **kwargs):
"""
Administrative access method called by the Server to send an
instruction to the Portal.
Args:
session (Session): Session.
operation (char, optional): Identifier for the server
... | [
"def",
"send_AdminServer2Portal",
"(",
"self",
",",
"session",
",",
"operation",
"=",
"\"\"",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"data_to_portal",
"(",
"amp",
".",
"AdminServer2Portal",
",",
"session",
".",
"sessid",
",",
"operation",
... | [
145,
4
] | [
159,
65
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.server_receive_msgportal2server | (self, packed_data) |
Receives message arriving to server. This method is executed
on the Server.
Args:
packed_data (str): Data to receive (a pickled tuple (sessid,kwargs))
|
Receives message arriving to server. This method is executed
on the Server. | def server_receive_msgportal2server(self, packed_data):
"""
Receives message arriving to server. This method is executed
on the Server.
Args:
packed_data (str): Data to receive (a pickled tuple (sessid,kwargs))
"""
sessid, kwargs = self.data_in(packed_data)
... | [
"def",
"server_receive_msgportal2server",
"(",
"self",
",",
"packed_data",
")",
":",
"sessid",
",",
"kwargs",
"=",
"self",
".",
"data_in",
"(",
"packed_data",
")",
"session",
"=",
"self",
".",
"factory",
".",
"server",
".",
"sessions",
".",
"get",
"(",
"se... | [
169,
4
] | [
182,
17
] | python | en | ['en', 'error', 'th'] | False |
AMPServerClientProtocol.server_receive_adminportal2server | (self, packed_data) |
Receives admin data from the Portal (allows the portal to
perform admin operations on the server). This is executed on
the Server.
Args:
packed_data (str): Incoming, pickled data.
|
Receives admin data from the Portal (allows the portal to
perform admin operations on the server). This is executed on
the Server. | def server_receive_adminportal2server(self, packed_data):
"""
Receives admin data from the Portal (allows the portal to
perform admin operations on the server). This is executed on
the Server.
Args:
packed_data (str): Incoming, pickled data.
"""
sess... | [
"def",
"server_receive_adminportal2server",
"(",
"self",
",",
"packed_data",
")",
":",
"sessid",
",",
"kwargs",
"=",
"self",
".",
"data_in",
"(",
"packed_data",
")",
"operation",
"=",
"kwargs",
".",
"pop",
"(",
"\"operation\"",
",",
"\"\"",
")",
"server_sessio... | [
186,
4
] | [
240,
17
] | python | en | ['en', 'error', 'th'] | False |
Contours.x | (self) |
The 'x' property is an instance of X
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.X`
- A dict of string/value properties that will be passed
to the X constructor
Supported dict properties:
... |
The 'x' property is an instance of X
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.X`
- A dict of string/value properties that will be passed
to the X constructor
Supported dict properties:
... | def x(self):
"""
The 'x' property is an instance of X
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.X`
- A dict of string/value properties that will be passed
to the X constructor
Supported dict properties:
... | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
15,
4
] | [
63,
24
] | python | en | ['en', 'error', 'th'] | False |
Contours.y | (self) |
The 'y' property is an instance of Y
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Y`
- A dict of string/value properties that will be passed
to the Y constructor
Supported dict properties:
... |
The 'y' property is an instance of Y
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Y`
- A dict of string/value properties that will be passed
to the Y constructor
Supported dict properties:
... | def y(self):
"""
The 'y' property is an instance of Y
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Y`
- A dict of string/value properties that will be passed
to the Y constructor
Supported dict properties:
... | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
72,
4
] | [
120,
24
] | python | en | ['en', 'error', 'th'] | False |
Contours.z | (self) |
The 'z' property is an instance of Z
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Z`
- A dict of string/value properties that will be passed
to the Z constructor
Supported dict properties:
... |
The 'z' property is an instance of Z
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Z`
- A dict of string/value properties that will be passed
to the Z constructor
Supported dict properties:
... | def z(self):
"""
The 'z' property is an instance of Z
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.contours.Z`
- A dict of string/value properties that will be passed
to the Z constructor
Supported dict properties:
... | [
"def",
"z",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"z\"",
"]"
] | [
129,
4
] | [
177,
24
] | python | en | ['en', 'error', 'th'] | False |
Contours.__init__ | (self, arg=None, x=None, y=None, z=None, **kwargs) |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.Contours`
x
:class:`plotly.graph_objects.surface.contours.X`... |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.Contours`
x
:class:`plotly.graph_objects.surface.contours.X`... | def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):
"""
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.Conto... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"x",
"=",
"None",
",",
"y",
"=",
"None",
",",
"z",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Contours",
",",
"self",
")",
".",
"__init__",
"(",
"\"contours\"",
"... | [
199,
4
] | [
271,
34
] | python | en | ['en', 'error', 'th'] | False |
Carpet.a | (self) |
An array containing values of the first parameter value
The 'a' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
An array containing values of the first parameter value
The 'a' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def a(self):
"""
An array containing values of the first parameter value
The 'a' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["a"] | [
"def",
"a",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"a\"",
"]"
] | [
49,
4
] | [
60,
24
] | python | en | ['en', 'error', 'th'] | False |
Carpet.a0 | (self) |
Alternate to `a`. Builds a linear space of a coordinates. Use
with `da` where `a0` is the starting coordinate and `da` the
step.
The 'a0' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Alternate to `a`. Builds a linear space of a coordinates. Use
with `da` where `a0` is the starting coordinate and `da` the
step.
The 'a0' property is a number and may be specified as:
- An int or float | def a0(self):
"""
Alternate to `a`. Builds a linear space of a coordinates. Use
with `da` where `a0` is the starting coordinate and `da` the
step.
The 'a0' property is a number and may be specified as:
- An int or float
Returns
-------
int|... | [
"def",
"a0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"a0\"",
"]"
] | [
69,
4
] | [
82,
25
] | python | en | ['en', 'error', 'th'] | False |
Carpet.aaxis | (self) |
The 'aaxis' property is an instance of Aaxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Aaxis`
- A dict of string/value properties that will be passed
to the Aaxis constructor
Supported dict properties:
... |
The 'aaxis' property is an instance of Aaxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Aaxis`
- A dict of string/value properties that will be passed
to the Aaxis constructor
Supported dict properties:
... | def aaxis(self):
"""
The 'aaxis' property is an instance of Aaxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Aaxis`
- A dict of string/value properties that will be passed
to the Aaxis constructor
Supported dict pr... | [
"def",
"aaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"aaxis\"",
"]"
] | [
91,
4
] | [
317,
28
] | python | en | ['en', 'error', 'th'] | False |
Carpet.asrc | (self) |
Sets the source reference on Chart Studio Cloud for a .
The 'asrc' 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 a .
The 'asrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def asrc(self):
"""
Sets the source reference on Chart Studio Cloud for a .
The 'asrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["asrc"] | [
"def",
"asrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"asrc\"",
"]"
] | [
326,
4
] | [
337,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.b | (self) |
A two dimensional array of y coordinates at each carpet point.
The 'b' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
A two dimensional array of y coordinates at each carpet point.
The 'b' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def b(self):
"""
A two dimensional array of y coordinates at each carpet point.
The 'b' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["b"] | [
"def",
"b",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"b\"",
"]"
] | [
346,
4
] | [
357,
24
] | python | en | ['en', 'error', 'th'] | False |
Carpet.b0 | (self) |
Alternate to `b`. Builds a linear space of a coordinates. Use
with `db` where `b0` is the starting coordinate and `db` the
step.
The 'b0' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Alternate to `b`. Builds a linear space of a coordinates. Use
with `db` where `b0` is the starting coordinate and `db` the
step.
The 'b0' property is a number and may be specified as:
- An int or float | def b0(self):
"""
Alternate to `b`. Builds a linear space of a coordinates. Use
with `db` where `b0` is the starting coordinate and `db` the
step.
The 'b0' property is a number and may be specified as:
- An int or float
Returns
-------
int|... | [
"def",
"b0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"b0\"",
"]"
] | [
366,
4
] | [
379,
25
] | python | en | ['en', 'error', 'th'] | False |
Carpet.baxis | (self) |
The 'baxis' property is an instance of Baxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Baxis`
- A dict of string/value properties that will be passed
to the Baxis constructor
Supported dict properties:
... |
The 'baxis' property is an instance of Baxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Baxis`
- A dict of string/value properties that will be passed
to the Baxis constructor
Supported dict properties:
... | def baxis(self):
"""
The 'baxis' property is an instance of Baxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Baxis`
- A dict of string/value properties that will be passed
to the Baxis constructor
Supported dict pr... | [
"def",
"baxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"baxis\"",
"]"
] | [
388,
4
] | [
614,
28
] | python | en | ['en', 'error', 'th'] | False |
Carpet.bsrc | (self) |
Sets the source reference on Chart Studio Cloud for b .
The 'bsrc' 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 b .
The 'bsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bsrc(self):
"""
Sets the source reference on Chart Studio Cloud for b .
The 'bsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bsrc"] | [
"def",
"bsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bsrc\"",
"]"
] | [
623,
4
] | [
634,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.carpet | (self) |
An identifier for this carpet, so that `scattercarpet` and
`contourcarpet` traces can specify a carpet plot on which they
lie
The 'carpet' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
... |
An identifier for this carpet, so that `scattercarpet` and
`contourcarpet` traces can specify a carpet plot on which they
lie
The 'carpet' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def carpet(self):
"""
An identifier for this carpet, so that `scattercarpet` and
`contourcarpet` traces can specify a carpet plot on which they
lie
The 'carpet' property is a string and must be specified as:
- A string
- A number that will be converted to... | [
"def",
"carpet",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"carpet\"",
"]"
] | [
643,
4
] | [
657,
29
] | python | en | ['en', 'error', 'th'] | False |
Carpet.cheaterslope | (self) |
The shift applied to each successive row of data in creating a
cheater plot. Only used if `x` is been ommitted.
The 'cheaterslope' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The shift applied to each successive row of data in creating a
cheater plot. Only used if `x` is been ommitted.
The 'cheaterslope' property is a number and may be specified as:
- An int or float | def cheaterslope(self):
"""
The shift applied to each successive row of data in creating a
cheater plot. Only used if `x` is been ommitted.
The 'cheaterslope' property is a number and may be specified as:
- An int or float
Returns
-------
int|float... | [
"def",
"cheaterslope",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cheaterslope\"",
"]"
] | [
666,
4
] | [
678,
35
] | python | en | ['en', 'error', 'th'] | False |
Carpet.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\"",
"]"
] | [
687,
4
] | [
740,
28
] | python | en | ['en', 'error', 'th'] | False |
Carpet.customdata | (self) |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... | def customdata(self):
"""
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be sp... | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
749,
4
] | [
763,
33
] | python | en | ['en', 'error', 'th'] | False |
Carpet.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
772,
4
] | [
784,
36
] | python | en | ['en', 'error', 'th'] | False |
Carpet.da | (self) |
Sets the a coordinate step. See `a0` for more info.
The 'da' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the a coordinate step. See `a0` for more info.
The 'da' property is a number and may be specified as:
- An int or float | def da(self):
"""
Sets the a coordinate step. See `a0` for more info.
The 'da' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["da"] | [
"def",
"da",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"da\"",
"]"
] | [
793,
4
] | [
804,
25
] | python | en | ['en', 'error', 'th'] | False |
Carpet.db | (self) |
Sets the b coordinate step. See `b0` for more info.
The 'db' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the b coordinate step. See `b0` for more info.
The 'db' property is a number and may be specified as:
- An int or float | def db(self):
"""
Sets the b coordinate step. See `b0` for more info.
The 'db' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["db"] | [
"def",
"db",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"db\"",
"]"
] | [
813,
4
] | [
824,
25
] | python | en | ['en', 'error', 'th'] | False |
Carpet.font | (self) |
The default font used for axis & tick labels on this carpet
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Font`
- A dict of string/value properties that will be passed
to the Font const... |
The default font used for axis & tick labels on this carpet
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Font`
- A dict of string/value properties that will be passed
to the Font const... | def font(self):
"""
The default font used for axis & tick labels on this carpet
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Font`
- A dict of string/value properties that will be passed
... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
833,
4
] | [
870,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.ids | (self) |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Retur... |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ids(self):
"""
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pa... | [
"def",
"ids",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ids\"",
"]"
] | [
879,
4
] | [
892,
26
] | python | en | ['en', 'error', 'th'] | False |
Carpet.idssrc | (self) |
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def idssrc(self):
"""
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["idssrc"] | [
"def",
"idssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"idssrc\"",
"]"
] | [
901,
4
] | [
912,
29
] | python | en | ['en', 'error', 'th'] | False |
Carpet.meta | (self) |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... | def meta(self):
"""
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text ... | [
"def",
"meta",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meta\"",
"]"
] | [
921,
4
] | [
940,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.metasrc | (self) |
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def metasrc(self):
"""
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["metasrc"] | [
"def",
"metasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"metasrc\"",
"]"
] | [
949,
4
] | [
960,
30
] | python | en | ['en', 'error', 'th'] | False |
Carpet.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
969,
4
] | [
982,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.opacity | (self) |
Sets the opacity of the trace.
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 opacity of the trace.
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 opacity of the trace.
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\"",
"]"
] | [
991,
4
] | [
1002,
30
] | python | en | ['en', 'error', 'th'] | False |
Carpet.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... | def stream(self):
"""
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported di... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
1011,
4
] | [
1035,
29
] | python | en | ['en', 'error', 'th'] | False |
Carpet.uid | (self) |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
... |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Return... | [
"def",
"uid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uid\"",
"]"
] | [
1044,
4
] | [
1057,
26
] | python | en | ['en', 'error', 'th'] | False |
Carpet.uirevision | (self) |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... | def uirevision(self):
"""
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driv... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
1066,
4
] | [
1090,
33
] | python | en | ['en', 'error', 'th'] | False |
Carpet.visible | (self) |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... | def visible(self):
"""
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One o... | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
1099,
4
] | [
1113,
30
] | python | en | ['en', 'error', 'th'] | False |
Carpet.x | (self) |
A two dimensional array of x coordinates at each carpet point.
If ommitted, the plot is a cheater plot and the xaxis is hidden
by default.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
... |
A two dimensional array of x coordinates at each carpet point.
If ommitted, the plot is a cheater plot and the xaxis is hidden
by default.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def x(self):
"""
A two dimensional array of x coordinates at each carpet point.
If ommitted, the plot is a cheater plot and the xaxis is hidden
by default.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Ret... | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
1122,
4
] | [
1135,
24
] | python | en | ['en', 'error', 'th'] | False |
Carpet.xaxis | (self) |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... | def xaxis(self):
"""
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an ident... | [
"def",
"xaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xaxis\"",
"]"
] | [
1144,
4
] | [
1160,
28
] | python | en | ['en', 'error', 'th'] | False |
Carpet.xsrc | (self) |
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def xsrc(self):
"""
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["xsrc"] | [
"def",
"xsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xsrc\"",
"]"
] | [
1169,
4
] | [
1180,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.y | (self) |
A two dimensional array of y coordinates at each carpet point.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
A two dimensional array of y coordinates at each carpet point.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def y(self):
"""
A two dimensional array of y coordinates at each carpet point.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
1189,
4
] | [
1200,
24
] | python | en | ['en', 'error', 'th'] | False |
Carpet.yaxis | (self) |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... | def yaxis(self):
"""
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an ident... | [
"def",
"yaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yaxis\"",
"]"
] | [
1209,
4
] | [
1225,
28
] | python | en | ['en', 'error', 'th'] | False |
Carpet.ysrc | (self) |
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def ysrc(self):
"""
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["ysrc"] | [
"def",
"ysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ysrc\"",
"]"
] | [
1234,
4
] | [
1245,
27
] | python | en | ['en', 'error', 'th'] | False |
Carpet.__init__ | (
self,
arg=None,
a=None,
a0=None,
aaxis=None,
asrc=None,
b=None,
b0=None,
baxis=None,
bsrc=None,
carpet=None,
cheaterslope=None,
color=None,
customdata=None,
customdatasrc=None,
da=None,
... |
Construct a new Carpet object
The data describing carpet axis layout is set in `y` and
(optionally) also `x`. If only `y` is present, `x` the plot is
interpreted as a cheater plot and is filled in using the `y`
values. `x` and `y` may either be 2D arrays matching with e... |
Construct a new Carpet object
The data describing carpet axis layout is set in `y` and
(optionally) also `x`. If only `y` is present, `x` the plot is
interpreted as a cheater plot and is filled in using the `y`
values. `x` and `y` may either be 2D arrays matching with e... | def __init__(
self,
arg=None,
a=None,
a0=None,
aaxis=None,
asrc=None,
b=None,
b0=None,
baxis=None,
bsrc=None,
carpet=None,
cheaterslope=None,
color=None,
customdata=None,
customdatasrc=None,
d... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"a",
"=",
"None",
",",
"a0",
"=",
"None",
",",
"aaxis",
"=",
"None",
",",
"asrc",
"=",
"None",
",",
"b",
"=",
"None",
",",
"b0",
"=",
"None",
",",
"baxis",
"=",
"None",
",",
"bsrc"... | [
1398,
4
] | [
1759,
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.table.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.table.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... | 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.table.Stream`
m... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
139,
34
] | python | en | ['en', 'error', 'th'] | False |
Link.color | (self) |
Sets the `link` color. It can be a single value, or an array
for specifying color for each `link`. If `link.color` is
omitted, then by default, a translucent grey link will be used.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
... |
Sets the `link` color. It can be a single value, or an array
for specifying color for each `link`. If `link.color` is
omitted, then by default, a translucent grey link will be used.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
... | def color(self):
"""
Sets the `link` color. It can be a single value, or an array
for specifying color for each `link`. If `link.color` is
omitted, then by default, a translucent grey link will be used.
The 'color' property is a color and may be specified as:
- A h... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
35,
4
] | [
88,
28
] | python | en | ['en', 'error', 'th'] | False |
Link.colorscales | (self) |
The 'colorscales' property is a tuple of instances of
Colorscale that may be specified as:
- A list or tuple of instances of plotly.graph_objs.sankey.link.Colorscale
- A list or tuple of dicts of string/value properties that
will be passed to the Colorscale constructor
... |
The 'colorscales' property is a tuple of instances of
Colorscale that may be specified as:
- A list or tuple of instances of plotly.graph_objs.sankey.link.Colorscale
- A list or tuple of dicts of string/value properties that
will be passed to the Colorscale constructor
... | def colorscales(self):
"""
The 'colorscales' property is a tuple of instances of
Colorscale that may be specified as:
- A list or tuple of instances of plotly.graph_objs.sankey.link.Colorscale
- A list or tuple of dicts of string/value properties that
will be pass... | [
"def",
"colorscales",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscales\"",
"]"
] | [
97,
4
] | [
154,
34
] | python | en | ['en', 'error', 'th'] | False |
Link.colorscaledefaults | (self) |
When used in a template (as
layout.template.data.sankey.link.colorscaledefaults), sets the
default property values to use for elements of
sankey.link.colorscales
The 'colorscaledefaults' property is an instance of Colorscale
that may be specified as:
- An ... |
When used in a template (as
layout.template.data.sankey.link.colorscaledefaults), sets the
default property values to use for elements of
sankey.link.colorscales
The 'colorscaledefaults' property is an instance of Colorscale
that may be specified as:
- An ... | def colorscaledefaults(self):
"""
When used in a template (as
layout.template.data.sankey.link.colorscaledefaults), sets the
default property values to use for elements of
sankey.link.colorscales
The 'colorscaledefaults' property is an instance of Colorscale
... | [
"def",
"colorscaledefaults",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscaledefaults\"",
"]"
] | [
163,
4
] | [
182,
41
] | python | en | ['en', 'error', 'th'] | False |
Link.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\"",
"]"
] | [
191,
4
] | [
202,
31
] | python | en | ['en', 'error', 'th'] | False |
Link.customdata | (self) |
Assigns extra data to each link.
The 'customdata' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Assigns extra data to each link.
The 'customdata' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def customdata(self):
"""
Assigns extra data to each link.
The 'customdata' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["customdata"] | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
211,
4
] | [
222,
33
] | python | en | ['en', 'error', 'th'] | False |
Link.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
231,
4
] | [
243,
36
] | python | en | ['en', 'error', 'th'] | False |
Link.hoverinfo | (self) |
Determines which trace information appear when hovering links.
If `none` or `skip` are set, no information is displayed upon
hovering. But, if `none` is set, click and hover events are
still fired.
The 'hoverinfo' property is an enumeration that may be specified as:
... |
Determines which trace information appear when hovering links.
If `none` or `skip` are set, no information is displayed upon
hovering. But, if `none` is set, click and hover events are
still fired.
The 'hoverinfo' property is an enumeration that may be specified as:
... | def hoverinfo(self):
"""
Determines which trace information appear when hovering links.
If `none` or `skip` are set, no information is displayed upon
hovering. But, if `none` is set, click and hover events are
still fired.
The 'hoverinfo' property is an enumeration t... | [
"def",
"hoverinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfo\"",
"]"
] | [
252,
4
] | [
267,
32
] | python | en | ['en', 'error', 'th'] | False |
Link.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.sankey.link.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict prope... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.sankey.link.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict prope... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.sankey.link.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
276,
4
] | [
326,
33
] | python | en | ['en', 'error', 'th'] | False |
Link.hovertemplate | (self) |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... | def hovertemplate(self):
"""
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d... | [
"def",
"hovertemplate",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplate\"",
"]"
] | [
335,
4
] | [
367,
36
] | python | en | ['en', 'error', 'th'] | False |
Link.hovertemplatesrc | (self) |
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertemplatesrc(self):
"""
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return se... | [
"def",
"hovertemplatesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplatesrc\"",
"]"
] | [
376,
4
] | [
388,
39
] | python | en | ['en', 'error', 'th'] | False |
Link.label | (self) |
The shown name of the link.
The 'label' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
The shown name of the link.
The 'label' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def label(self):
"""
The shown name of the link.
The 'label' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["label"] | [
"def",
"label",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"label\"",
"]"
] | [
397,
4
] | [
408,
28
] | python | en | ['en', 'error', 'th'] | False |
Link.labelsrc | (self) |
Sets the source reference on Chart Studio Cloud for label .
The 'labelsrc' 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 label .
The 'labelsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def labelsrc(self):
"""
Sets the source reference on Chart Studio Cloud for label .
The 'labelsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["labelsrc"] | [
"def",
"labelsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelsrc\"",
"]"
] | [
417,
4
] | [
428,
31
] | python | en | ['en', 'error', 'th'] | False |
Link.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.sankey.link.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.sankey.link.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.sankey.link.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict pr... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
437,
4
] | [
464,
27
] | python | en | ['en', 'error', 'th'] | False |
Link.source | (self) |
An integer number `[0..nodes.length - 1]` that represents the
source node.
The 'source' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
An integer number `[0..nodes.length - 1]` that represents the
source node.
The 'source' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def source(self):
"""
An integer number `[0..nodes.length - 1]` that represents the
source node.
The 'source' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
... | [
"def",
"source",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"source\"",
"]"
] | [
473,
4
] | [
485,
29
] | 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.