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
_load_fido_apps
()
Load FIDO apps from `fido/*.json`
Load FIDO apps from `fido/*.json`
def _load_fido_apps(): """Load FIDO apps from `fido/*.json`""" apps = [] for filename in sorted(glob.glob(os.path.join(DEFS_DIR, "fido", "*.json"))): app_name = os.path.basename(filename)[:-5].lower() app = load_json(filename) app.setdefault("use_sign_count", None) app.setdef...
[ "def", "_load_fido_apps", "(", ")", ":", "apps", "=", "[", "]", "for", "filename", "in", "sorted", "(", "glob", ".", "glob", "(", "os", ".", "path", ".", "join", "(", "DEFS_DIR", ",", "\"fido\"", ",", "\"*.json\"", ")", ")", ")", ":", "app_name", "...
[ 276, 0 ]
[ 294, 15 ]
python
en
['en', 'fy', 'en']
True
get_support_data
()
Get raw support data from `support.json`.
Get raw support data from `support.json`.
def get_support_data(): """Get raw support data from `support.json`.""" return load_json("support.json")
[ "def", "get_support_data", "(", ")", ":", "return", "load_json", "(", "\"support.json\"", ")" ]
[ 304, 0 ]
[ 306, 36 ]
python
en
['en', 'en', 'en']
True
latest_releases
()
Get latest released firmware versions for Trezor 1 and 2
Get latest released firmware versions for Trezor 1 and 2
def latest_releases(): """Get latest released firmware versions for Trezor 1 and 2""" if not requests: raise RuntimeError("requests library is required for getting release info") latest = {} for v in ("1", "2"): releases = requests.get(RELEASES_URL.format(v)).json() latest["trez...
[ "def", "latest_releases", "(", ")", ":", "if", "not", "requests", ":", "raise", "RuntimeError", "(", "\"requests library is required for getting release info\"", ")", "latest", "=", "{", "}", "for", "v", "in", "(", "\"1\"", ",", "\"2\"", ")", ":", "releases", ...
[ 309, 0 ]
[ 318, 17 ]
python
en
['en', 'en', 'en']
True
support_info_single
(support_data, coin)
Extract a support dict from `support.json` data. Returns a dict of support values for each "device", i.e., `support.json` top-level key. The support value for each device is determined in order of priority: * if the coin is a duplicate ERC20 token, all support values are `None` * if the coin has a...
Extract a support dict from `support.json` data.
def support_info_single(support_data, coin): """Extract a support dict from `support.json` data. Returns a dict of support values for each "device", i.e., `support.json` top-level key. The support value for each device is determined in order of priority: * if the coin is a duplicate ERC20 token, a...
[ "def", "support_info_single", "(", "support_data", ",", "coin", ")", ":", "support_info", "=", "{", "}", "key", "=", "coin", "[", "\"key\"", "]", "dup", "=", "coin", ".", "get", "(", "\"duplicate\"", ")", "for", "device", ",", "values", "in", "support_da...
[ 325, 0 ]
[ 358, 23 ]
python
en
['en', 'en', 'en']
True
support_info
(coins)
Generate Trezor support information. Takes a collection of coins and generates a support-info entry for each. The support-info is a dict with keys based on `support.json` keys. These are usually: "trezor1", "trezor2", "connect" and "webwallet". The `coins` argument can be a `CoinsInfo` object, a list ...
Generate Trezor support information.
def support_info(coins): """Generate Trezor support information. Takes a collection of coins and generates a support-info entry for each. The support-info is a dict with keys based on `support.json` keys. These are usually: "trezor1", "trezor2", "connect" and "webwallet". The `coins` argument can ...
[ "def", "support_info", "(", "coins", ")", ":", "if", "isinstance", "(", "coins", ",", "CoinsInfo", ")", ":", "coins", "=", "coins", ".", "as_list", "(", ")", "elif", "isinstance", "(", "coins", ",", "dict", ")", ":", "coins", "=", "coins", ".", "valu...
[ 361, 0 ]
[ 383, 18 ]
python
en
['ro', 'en', 'it']
False
_ensure_mandatory_values
(coins)
Checks that every coin has the mandatory fields: name, shortcut, key
Checks that every coin has the mandatory fields: name, shortcut, key
def _ensure_mandatory_values(coins): """Checks that every coin has the mandatory fields: name, shortcut, key""" for coin in coins: if not all(coin.get(k) for k in ("name", "shortcut", "key")): raise ValueError(coin)
[ "def", "_ensure_mandatory_values", "(", "coins", ")", ":", "for", "coin", "in", "coins", ":", "if", "not", "all", "(", "coin", ".", "get", "(", "k", ")", "for", "k", "in", "(", "\"name\"", ",", "\"shortcut\"", ",", "\"key\"", ")", ")", ":", "raise", ...
[ 389, 0 ]
[ 393, 34 ]
python
en
['en', 'en', 'en']
True
mark_duplicate_shortcuts
(coins)
Finds coins with identical symbols and sets their `duplicate` field. "Symbol" here means the first part of `shortcut` (separated by space), so, e.g., "BTL (Battle)" and "BTL (Bitlle)" have the same symbol "BTL". The result of this function is a dictionary of _buckets_, each of which is indexed by the ...
Finds coins with identical symbols and sets their `duplicate` field.
def mark_duplicate_shortcuts(coins): """Finds coins with identical symbols and sets their `duplicate` field. "Symbol" here means the first part of `shortcut` (separated by space), so, e.g., "BTL (Battle)" and "BTL (Bitlle)" have the same symbol "BTL". The result of this function is a dictionary of _bu...
[ "def", "mark_duplicate_shortcuts", "(", "coins", ")", ":", "dup_symbols", "=", "defaultdict", "(", "list", ")", "for", "coin", "in", "coins", ":", "symbol", ",", "_", "=", "symbol_from_shortcut", "(", "coin", "[", "\"shortcut\"", "]", ".", "lower", "(", ")...
[ 401, 0 ]
[ 440, 22 ]
python
en
['en', 'en', 'en']
True
deduplicate_erc20
(buckets, networks)
Apply further processing to ERC20 duplicate buckets. This function works on results of `mark_duplicate_shortcuts`. Buckets that contain at least one non-token are ignored - symbol collisions with non-tokens always apply. Otherwise the following rules are applied: 1. If _all tokens_ in the bucket...
Apply further processing to ERC20 duplicate buckets.
def deduplicate_erc20(buckets, networks): """Apply further processing to ERC20 duplicate buckets. This function works on results of `mark_duplicate_shortcuts`. Buckets that contain at least one non-token are ignored - symbol collisions with non-tokens always apply. Otherwise the following rules a...
[ "def", "deduplicate_erc20", "(", "buckets", ",", "networks", ")", ":", "testnet_networks", "=", "{", "n", "[", "\"chain\"", "]", "for", "n", "in", "networks", "if", "\"Testnet\"", "in", "n", "[", "\"name\"", "]", "}", "overrides", "=", "buckets", "[", "\...
[ 443, 0 ]
[ 509, 32 ]
python
en
['en', 'en', 'en']
True
collect_coin_info
()
Returns all definition as dict organized by coin type. `coins` for btc-like coins, `eth` for ethereum networks, `erc20` for ERC20 tokens, `nem` for NEM mosaics, `misc` for other networks.
Returns all definition as dict organized by coin type. `coins` for btc-like coins, `eth` for ethereum networks, `erc20` for ERC20 tokens, `nem` for NEM mosaics, `misc` for other networks.
def collect_coin_info(): """Returns all definition as dict organized by coin type. `coins` for btc-like coins, `eth` for ethereum networks, `erc20` for ERC20 tokens, `nem` for NEM mosaics, `misc` for other networks. """ all_coins = CoinsInfo( bitcoin=_load_btc_coins(), et...
[ "def", "collect_coin_info", "(", ")", ":", "all_coins", "=", "CoinsInfo", "(", "bitcoin", "=", "_load_btc_coins", "(", ")", ",", "eth", "=", "_load_ethereum_networks", "(", ")", ",", "erc20", "=", "_load_erc20_tokens", "(", ")", ",", "nem", "=", "_load_nem_m...
[ 535, 0 ]
[ 554, 20 ]
python
en
['en', 'en', 'en']
True
coin_info_with_duplicates
()
Collects coin info, detects duplicates but does not remove them. Returns the CoinsInfo object and duplicate buckets.
Collects coin info, detects duplicates but does not remove them.
def coin_info_with_duplicates(): """Collects coin info, detects duplicates but does not remove them. Returns the CoinsInfo object and duplicate buckets. """ all_coins = collect_coin_info() buckets = mark_duplicate_shortcuts(all_coins.as_list()) deduplicate_erc20(buckets, all_coins.eth) dedu...
[ "def", "coin_info_with_duplicates", "(", ")", ":", "all_coins", "=", "collect_coin_info", "(", ")", "buckets", "=", "mark_duplicate_shortcuts", "(", "all_coins", ".", "as_list", "(", ")", ")", "deduplicate_erc20", "(", "buckets", ",", "all_coins", ".", "eth", ")...
[ 571, 0 ]
[ 582, 29 ]
python
en
['en', 'en', 'en']
True
coin_info
()
Collects coin info, fills out support info and returns the result. Does not auto-delete duplicates. This should now be based on support info.
Collects coin info, fills out support info and returns the result.
def coin_info(): """Collects coin info, fills out support info and returns the result. Does not auto-delete duplicates. This should now be based on support info. """ all_coins, _ = coin_info_with_duplicates() # all_coins["erc20"] = [ # coin for coin in all_coins["erc20"] if not coin.get("du...
[ "def", "coin_info", "(", ")", ":", "all_coins", ",", "_", "=", "coin_info_with_duplicates", "(", ")", "# all_coins[\"erc20\"] = [", "# coin for coin in all_coins[\"erc20\"] if not coin.get(\"duplicate\")", "# ]", "return", "all_coins" ]
[ 585, 0 ]
[ 594, 20 ]
python
en
['en', 'en', 'en']
True
fido_info
()
Returns info about known FIDO/U2F apps.
Returns info about known FIDO/U2F apps.
def fido_info(): """Returns info about known FIDO/U2F apps.""" return _load_fido_apps()
[ "def", "fido_info", "(", ")", ":", "return", "_load_fido_apps", "(", ")" ]
[ 597, 0 ]
[ 599, 28 ]
python
en
['en', 'en', 'en']
True
Request.signingPayloadState
(self, identifier=None)
Special signing state where the the data for an attribute is hashed before signing :return: state to be used when signing
Special signing state where the the data for an attribute is hashed before signing :return: state to be used when signing
def signingPayloadState(self, identifier=None): """ Special signing state where the the data for an attribute is hashed before signing :return: state to be used when signing """ if self.operation.get(TXN_TYPE) == ATTRIB: d = deepcopy(super().signingPayloadStat...
[ "def", "signingPayloadState", "(", "self", ",", "identifier", "=", "None", ")", ":", "if", "self", ".", "operation", ".", "get", "(", "TXN_TYPE", ")", "==", "ATTRIB", ":", "d", "=", "deepcopy", "(", "super", "(", ")", ".", "signingPayloadState", "(", "...
[ 51, 4 ]
[ 63, 65 ]
python
en
['en', 'error', 'th']
False
CrowdDataWorld.prep_save_data
(self, workers)
This prepares data to be saved for later review, including chats from individual worker perspectives.
This prepares data to be saved for later review, including chats from individual worker perspectives.
def prep_save_data(self, workers): """ This prepares data to be saved for later review, including chats from individual worker perspectives. """ custom_data = self.get_custom_task_data() save_data = {'custom_data': custom_data, 'worker_data': {}} return save_data
[ "def", "prep_save_data", "(", "self", ",", "workers", ")", ":", "custom_data", "=", "self", ".", "get_custom_task_data", "(", ")", "save_data", "=", "{", "'custom_data'", ":", "custom_data", ",", "'worker_data'", ":", "{", "}", "}", "return", "save_data" ]
[ 10, 4 ]
[ 17, 24 ]
python
en
['en', 'error', 'th']
False
CrowdDataWorld.get_custom_task_data
(self)
This function should take the contents of whatever was collected during this task that should be saved and return it in some format, preferrably a dict containing acts. If you need some extraordinary data storage that this doesn't cover, you can extend the ParlAIChatBlueprint a...
This function should take the contents of whatever was collected during this task that should be saved and return it in some format, preferrably a dict containing acts.
def get_custom_task_data(self): """ This function should take the contents of whatever was collected during this task that should be saved and return it in some format, preferrably a dict containing acts. If you need some extraordinary data storage that this doesn't cover, you c...
[ "def", "get_custom_task_data", "(", "self", ")", ":", "# return {", "# 'acts': [self.important_turn1, self.important_turn2]", "# 'context': self.some_context_data_of_importance", "# }", "pass" ]
[ 19, 4 ]
[ 33, 12 ]
python
en
['en', 'error', 'th']
False
CrowdOnboardWorld.__init__
(self, opt, agent)
Init should set up resources for running the onboarding world.
Init should set up resources for running the onboarding world.
def __init__(self, opt, agent): """ Init should set up resources for running the onboarding world. """ self.agent = agent self.episodeDone = False
[ "def", "__init__", "(", "self", ",", "opt", ",", "agent", ")", ":", "self", ".", "agent", "=", "agent", "self", ".", "episodeDone", "=", "False" ]
[ 41, 4 ]
[ 46, 32 ]
python
en
['en', 'error', 'th']
False
CrowdOnboardWorld.parley
(self)
A parley should represent one turn of your onboarding task.
A parley should represent one turn of your onboarding task.
def parley(self): """ A parley should represent one turn of your onboarding task. """ self.episodeDone = True
[ "def", "parley", "(", "self", ")", ":", "self", ".", "episodeDone", "=", "True" ]
[ 48, 4 ]
[ 52, 31 ]
python
en
['en', 'error', 'th']
False
CrowdOnboardWorld.shutdown
(self)
Clear up resources needed for this world.
Clear up resources needed for this world.
def shutdown(self): """ Clear up resources needed for this world. """ pass
[ "def", "shutdown", "(", "self", ")", ":", "pass" ]
[ 57, 4 ]
[ 61, 12 ]
python
en
['en', 'error', 'th']
False
CrowdTaskWorld.__init__
(self, opt, agent)
Init should set up resources for running the task world.
Init should set up resources for running the task world.
def __init__(self, opt, agent): """ Init should set up resources for running the task world. """ self.agent = agent self.episodeDone = False
[ "def", "__init__", "(", "self", ",", "opt", ",", "agent", ")", ":", "self", ".", "agent", "=", "agent", "self", ".", "episodeDone", "=", "False" ]
[ 69, 4 ]
[ 74, 32 ]
python
en
['en', 'error', 'th']
False
CrowdTaskWorld.parley
(self)
A parley should represent one turn of your task.
A parley should represent one turn of your task.
def parley(self): """ A parley should represent one turn of your task. """ self.episodeDone = True
[ "def", "parley", "(", "self", ")", ":", "self", ".", "episodeDone", "=", "True" ]
[ 76, 4 ]
[ 80, 31 ]
python
en
['en', 'error', 'th']
False
CrowdTaskWorld.episode_done
(self)
A ParlAI-Mephisto task ends and allows workers to be marked complete when the world is finished.
A ParlAI-Mephisto task ends and allows workers to be marked complete when the world is finished.
def episode_done(self): """ A ParlAI-Mephisto task ends and allows workers to be marked complete when the world is finished. """ return self.episodeDone
[ "def", "episode_done", "(", "self", ")", ":", "return", "self", ".", "episodeDone" ]
[ 82, 4 ]
[ 87, 31 ]
python
en
['en', 'error', 'th']
False
CrowdTaskWorld.shutdown
(self)
Should be used to free the world's resources and shut down the agents.
Should be used to free the world's resources and shut down the agents.
def shutdown(self): """ Should be used to free the world's resources and shut down the agents. """ self.agent.shutdown()
[ "def", "shutdown", "(", "self", ")", ":", "self", ".", "agent", ".", "shutdown", "(", ")" ]
[ 89, 4 ]
[ 93, 29 ]
python
en
['en', 'error', 'th']
False
CrowdTaskWorld.review_work
(self)
Programmatically approve/reject this work. Doing this now (if possible) means that you don't need to do the work of reviewing later on. For example: .. code-block:: python mephisto_agent = self.agent.mephisto_agent if self.response == '0': mephis...
Programmatically approve/reject this work. Doing this now (if possible) means that you don't need to do the work of reviewing later on.
def review_work(self): """ Programmatically approve/reject this work. Doing this now (if possible) means that you don't need to do the work of reviewing later on. For example: .. code-block:: python mephisto_agent = self.agent.mephisto_agent if self.respo...
[ "def", "review_work", "(", "self", ")", ":", "# mephisto_agent = self.agent.mephisto_agent", "# mephisto_agent.approve_work()", "# mephisto_agent.reject_work()", "# mephisto_agent.pay_bonus(1000) # Pay $1000 as bonus", "# mephisto_agent.block_worker() # Block this worker from future work", "pa...
[ 95, 4 ]
[ 118, 12 ]
python
en
['en', 'error', 'th']
False
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' 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/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfo...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfo...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont` - A dict of string/value properties that will be p...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcats.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Ti...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcats.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Ti...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcats.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties tha...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.parcats.line.c olorbar.tickformatstopdefaults), sets the default property values to use for elements of parcats.line.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that...
When used in a template (as layout.template.data.parcats.line.c olorbar.tickformatstopdefaults), sets the default property values to use for elements of parcats.line.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.parcats.line.c olorbar.tickformatstopdefaults), sets the default property values to use for elements of parcats.line.colorbar.tickformatstops The 'tickformatstopdefaults' property ...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' 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 ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' 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 tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Su...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use parcats.line.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: -...
Deprecated: Please use parcats.line.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: -...
def titlefont(self): """ Deprecated: Please use parcats.line.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that ...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use parcats.line.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that...
Deprecated: Please use parcats.line.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that...
def titleside(self): """ Deprecated: Please use parcats.line.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side'...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1134, 4 ]
[ 1149, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1158, 4 ]
[ 1169, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1178, 4 ]
[ 1192, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1201, 4 ]
[ 1212, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1221, 4 ]
[ 1232, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1241, 4 ]
[ 1255, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1264, 4 ]
[ 1275, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcats.line.ColorBar` bgcolor Sets the color of padded area. ...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcats.line.ColorBar` bgcolor Sets the color of padded area. ...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1482, 4 ]
[ 1941, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary .marker.colorbar.Tickformatstop` dtickrange ran...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary .marker.colorbar.Tickformatstop` dtickrange ran...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
parse_configuration_file
(config_path)
Read the config file for an experiment to get ParlAI settings. :param config_path: path to config :return: parsed configuration dictionary
Read the config file for an experiment to get ParlAI settings.
def parse_configuration_file(config_path): """ Read the config file for an experiment to get ParlAI settings. :param config_path: path to config :return: parsed configuration dictionary """ result = {} result["configs"] = {} with open(config_path) as f: cfg = ya...
[ "def", "parse_configuration_file", "(", "config_path", ")", ":", "result", "=", "{", "}", "result", "[", "\"configs\"", "]", "=", "{", "}", "with", "open", "(", "config_path", ")", "as", "f", ":", "cfg", "=", "yaml", ".", "load", "(", "f", ".", "read...
[ 25, 0 ]
[ 71, 17 ]
python
en
['en', 'error', 'th']
False
Project.x
(self)
Determines whether or not these contour lines are projected on the x plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'x' property must be specified as a bo...
Determines whether or not these contour lines are projected on the x plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'x' property must be specified as a bo...
def x(self): """ Determines whether or not these contour lines are projected on the x plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'x' property m...
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 15, 4 ]
[ 29, 24 ]
python
en
['en', 'error', 'th']
False
Project.y
(self)
Determines whether or not these contour lines are projected on the y plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'y' property must be specified as a bo...
Determines whether or not these contour lines are projected on the y plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'y' property must be specified as a bo...
def y(self): """ Determines whether or not these contour lines are projected on the y plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'y' property m...
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 38, 4 ]
[ 52, 24 ]
python
en
['en', 'error', 'th']
False
Project.z
(self)
Determines whether or not these contour lines are projected on the z plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'z' property must be specified as a bo...
Determines whether or not these contour lines are projected on the z plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'z' property must be specified as a bo...
def z(self): """ Determines whether or not these contour lines are projected on the z plane. If `highlight` is set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. The 'z' property m...
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 61, 4 ]
[ 75, 24 ]
python
en
['en', 'error', 'th']
False
Project.__init__
(self, arg=None, x=None, y=None, z=None, **kwargs)
Construct a new Project object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.z.Project` x Determines whether or not these contour...
Construct a new Project object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.z.Project` x Determines whether or not these contour...
def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): """ Construct a new Project object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contou...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "z", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Project", ",", "self", ")", ".", "__init__", "(", "\"project\"", ")"...
[ 106, 4 ]
[ 187, 34 ]
python
en
['en', 'error', 'th']
False
setup_args
()
Set up args.
Set up args.
def setup_args(): """ Set up args. """ parser = ParlaiParser(False, False) parser.add_parlai_data_path() parser.add_messenger_args() return parser.parse_args()
[ "def", "setup_args", "(", ")", ":", "parser", "=", "ParlaiParser", "(", "False", ",", "False", ")", "parser", ".", "add_parlai_data_path", "(", ")", "parser", ".", "add_messenger_args", "(", ")", "return", "parser", ".", "parse_args", "(", ")" ]
[ 16, 0 ]
[ 23, 30 ]
python
en
['en', 'error', 'th']
False
run
(opt)
Run MessengerManager.
Run MessengerManager.
def run(opt): """ Run MessengerManager. """ opt['service'] = SERVICE_NAME manager = MessengerManager(opt) try: manager.start_task() except BaseException: raise finally: manager.shutdown()
[ "def", "run", "(", "opt", ")", ":", "opt", "[", "'service'", "]", "=", "SERVICE_NAME", "manager", "=", "MessengerManager", "(", "opt", ")", "try", ":", "manager", ".", "start_task", "(", ")", "except", "BaseException", ":", "raise", "finally", ":", "mana...
[ 26, 0 ]
[ 37, 26 ]
python
en
['en', 'error', 'th']
False
load_checkpoint
(sess, checkpoint_dir, filename=None, blacklist=(), prefix=None, variable_mapping=None, whitelist=None, reverse_mapping=None)
if `filename` is None, we load last checkpoint, otherwise we ignore `checkpoint_dir` and load the given checkpoint file.
if `filename` is None, we load last checkpoint, otherwise we ignore `checkpoint_dir` and load the given checkpoint file.
def load_checkpoint(sess, checkpoint_dir, filename=None, blacklist=(), prefix=None, variable_mapping=None, whitelist=None, reverse_mapping=None): """ if `filename` is None, we load last checkpoint, otherwise we ignore `checkpoint_dir` and load the given checkpoint file. """ var...
[ "def", "load_checkpoint", "(", "sess", ",", "checkpoint_dir", ",", "filename", "=", "None", ",", "blacklist", "=", "(", ")", ",", "prefix", "=", "None", ",", "variable_mapping", "=", "None", ",", "whitelist", "=", "None", ",", "reverse_mapping", "=", "None...
[ 738, 0 ]
[ 800, 68 ]
python
en
['en', 'error', 'th']
False
TranslationModel.evaluate
(self, score_functions, on_dev=True, output=None, remove_unk=False, max_dev_size=None, raw_output=False, fix_edits=True, max_test_size=None, post_process_script=None, unk_replace=False, **kwargs)
Decode a dev or test set, and perform evaluation with respect to gold standard, using the provided scoring function. If `output` is defined, also save the decoding output to this file. When evaluating development data (`on_dev` to True), several dev sets can be specified (`dev_prefix` parameter...
Decode a dev or test set, and perform evaluation with respect to gold standard, using the provided scoring function. If `output` is defined, also save the decoding output to this file. When evaluating development data (`on_dev` to True), several dev sets can be specified (`dev_prefix` parameter...
def evaluate(self, score_functions, on_dev=True, output=None, remove_unk=False, max_dev_size=None, raw_output=False, fix_edits=True, max_test_size=None, post_process_script=None, unk_replace=False, **kwargs): """ Decode a dev or test set, and perform evaluation with res...
[ "def", "evaluate", "(", "self", ",", "score_functions", ",", "on_dev", "=", "True", ",", "output", "=", "None", ",", "remove_unk", "=", "False", ",", "max_dev_size", "=", "None", ",", "raw_output", "=", "False", ",", "fix_edits", "=", "True", ",", "max_t...
[ 319, 4 ]
[ 456, 21 ]
python
en
['en', 'error', 'th']
False
TranslationModel.initialize
(self, checkpoints=None, reset=False, reset_learning_rate=False, max_to_keep=1, keep_every_n_hours=0, sess=None, whitelist=None, blacklist=None, **kwargs)
:param checkpoints: list of checkpoints to load (instead of latest checkpoint) :param reset: don't load latest checkpoint, reset learning rate and global step :param reset_learning_rate: reset the learning rate to its initial value :param max_to_keep: keep this many latest checkpoints a...
:param checkpoints: list of checkpoints to load (instead of latest checkpoint) :param reset: don't load latest checkpoint, reset learning rate and global step :param reset_learning_rate: reset the learning rate to its initial value :param max_to_keep: keep this many latest checkpoints a...
def initialize(self, checkpoints=None, reset=False, reset_learning_rate=False, max_to_keep=1, keep_every_n_hours=0, sess=None, whitelist=None, blacklist=None, **kwargs): """ :param checkpoints: list of checkpoints to load (instead of latest checkpoint) :param reset: don't load...
[ "def", "initialize", "(", "self", ",", "checkpoints", "=", "None", ",", "reset", "=", "False", ",", "reset_learning_rate", "=", "False", ",", "max_to_keep", "=", "1", ",", "keep_every_n_hours", "=", "0", ",", "sess", "=", "None", ",", "whitelist", "=", "...
[ 651, 4 ]
[ 725, 74 ]
python
en
['en', 'error', 'th']
False
swatches_cyclical
(template=None)
Parameters ---------- template : str or dict or plotly.graph_objects.layout.Template instance The figure template name or definition. Returns ------- fig : graph_objects.Figure containing the displayed image A `Figure` object. This figure demonstrates the color scales and ...
Parameters ---------- template : str or dict or plotly.graph_objects.layout.Template instance The figure template name or definition.
def swatches_cyclical(template=None): """ Parameters ---------- template : str or dict or plotly.graph_objects.layout.Template instance The figure template name or definition. Returns ------- fig : graph_objects.Figure containing the displayed image A `Figure` object. This f...
[ "def", "swatches_cyclical", "(", "template", "=", "None", ")", ":", "import", "plotly", ".", "graph_objects", "as", "go", "from", "plotly", ".", "subplots", "import", "make_subplots", "from", "plotly", ".", "express", ".", "_core", "import", "apply_default_casca...
[ 16, 0 ]
[ 63, 14 ]
python
en
['en', 'error', 'th']
False
Gradient.color
(self)
Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 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)') - ...
Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 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)') - ...
def color(self): """ Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. ...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 67, 28 ]
python
en
['en', 'error', 'th']
False
Gradient.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\"", "]" ]
[ 76, 4 ]
[ 87, 31 ]
python
en
['en', 'error', 'th']
False
Gradient.type
(self)
Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensional numpy array of the abov...
Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensional numpy array of the abov...
def type(self): """ Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensio...
[ "def", "type", "(", "self", ")", ":", "return", "self", "[", "\"type\"", "]" ]
[ 96, 4 ]
[ 109, 27 ]
python
en
['en', 'error', 'th']
False
Gradient.typesrc
(self)
Sets the source reference on Chart Studio Cloud for type . The 'typesrc' 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 type . The 'typesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def typesrc(self): """ Sets the source reference on Chart Studio Cloud for type . The 'typesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["typesrc"]
[ "def", "typesrc", "(", "self", ")", ":", "return", "self", "[", "\"typesrc\"", "]" ]
[ 118, 4 ]
[ 129, 30 ]
python
en
['en', 'error', 'th']
False
Gradient.__init__
( self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs )
Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary .marker.Gradient` color Sets the final color of the g...
Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary .marker.Gradient` color Sets the final color of the g...
def __init__( self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`p...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "type", "=", "None", ",", "typesrc", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Gradient", ",", "self", ")"...
[ 154, 4 ]
[ 235, 34 ]
python
en
['en', 'error', 'th']
False
BallQuery.forward
(ctx, min_radius: float, max_radius: float, sample_num: int, xyz: torch.Tensor, center_xyz: torch.Tensor)
forward. Args: min_radius (float): minimum radius of the balls. max_radius (float): maximum radius of the balls. sample_num (int): maximum number of features in the balls. xyz (Tensor): (B, N, 3) xyz coordinates of the features. center_xyz (Tensor): (...
forward.
def forward(ctx, min_radius: float, max_radius: float, sample_num: int, xyz: torch.Tensor, center_xyz: torch.Tensor) -> torch.Tensor: """forward. Args: min_radius (float): minimum radius of the balls. max_radius (float): maximum radius of the balls. s...
[ "def", "forward", "(", "ctx", ",", "min_radius", ":", "float", ",", "max_radius", ":", "float", ",", "sample_num", ":", "int", ",", "xyz", ":", "torch", ".", "Tensor", ",", "center_xyz", ":", "torch", ".", "Tensor", ")", "->", "torch", ".", "Tensor", ...
[ 13, 4 ]
[ 39, 18 ]
python
en
['en', 'cy', 'en']
False
_createServer
(host, port)
Create async server that listens host:port, reads client request and puts value to some future that can be used then for checks :return: reference to server and future for request
Create async server that listens host:port, reads client request and puts value to some future that can be used then for checks
async def _createServer(host, port): """ Create async server that listens host:port, reads client request and puts value to some future that can be used then for checks :return: reference to server and future for request """ indicator = asyncio.Future() async def _handle(reader, writer): ...
[ "async", "def", "_createServer", "(", "host", ",", "port", ")", ":", "indicator", "=", "asyncio", ".", "Future", "(", ")", "async", "def", "_handle", "(", "reader", ",", "writer", ")", ":", "raw", "=", "await", "reader", ".", "readline", "(", ")", "r...
[ 11, 0 ]
[ 25, 28 ]
python
en
['en', 'error', 'th']
False
_checkFuture
(future)
Wrapper for futures that lets checking of their status using 'eventually'
Wrapper for futures that lets checking of their status using 'eventually'
def _checkFuture(future): """ Wrapper for futures that lets checking of their status using 'eventually' """ def _check(): if future.cancelled(): return None if future.done(): return future.result() raise Exception() return _check
[ "def", "_checkFuture", "(", "future", ")", ":", "def", "_check", "(", ")", ":", "if", "future", ".", "cancelled", "(", ")", ":", "return", "None", "if", "future", ".", "done", "(", ")", ":", "return", "future", ".", "result", "(", ")", "raise", "Ex...
[ 35, 0 ]
[ 45, 17 ]
python
en
['en', 'error', 'th']
False
testScheduleNodeUpgrade
(tconf, nodeSet)
Tests that upgrade scheduling works. For that it starts mock control service, schedules upgrade for near future and then checks that service received notification.
Tests that upgrade scheduling works. For that it starts mock control service, schedules upgrade for near future and then checks that service received notification.
def testScheduleNodeUpgrade(tconf, nodeSet): """ Tests that upgrade scheduling works. For that it starts mock control service, schedules upgrade for near future and then checks that service received notification. """ loop = asyncio.get_event_loop() server, indicator = loop.run_until_complete...
[ "def", "testScheduleNodeUpgrade", "(", "tconf", ",", "nodeSet", ")", ":", "loop", "=", "asyncio", ".", "get_event_loop", "(", ")", "server", ",", "indicator", "=", "loop", ".", "run_until_complete", "(", "_createServer", "(", "host", "=", "tconf", ".", "cont...
[ 48, 0 ]
[ 81, 44 ]
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