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
ServerSessionHandler.get_inputfuncs
(self)
Get all registered inputfuncs (access function) Returns: inputfuncs (dict): A dict of {key:inputfunc,...}
Get all registered inputfuncs (access function)
def get_inputfuncs(self): """ Get all registered inputfuncs (access function) Returns: inputfuncs (dict): A dict of {key:inputfunc,...} """ return _INPUT_FUNCS
[ "def", "get_inputfuncs", "(", "self", ")", ":", "return", "_INPUT_FUNCS" ]
[ 767, 4 ]
[ 774, 27 ]
python
en
['en', 'error', 'th']
False
ServerSessionHandler.data_in
(self, session, **kwargs)
We let the data take a "detour" to session.data_in so the user can override and see it all in one place. That method is responsible to in turn always call this class' `sessionhandler.call_inputfunc` with the (possibly processed) data.
We let the data take a "detour" to session.data_in so the user can override and see it all in one place. That method is responsible to in turn always call this class' `sessionhandler.call_inputfunc` with the (possibly processed) data.
def data_in(self, session, **kwargs): """ We let the data take a "detour" to session.data_in so the user can override and see it all in one place. That method is responsible to in turn always call this class' `sessionhandler.call_inputfunc` with the (possibly processed) d...
[ "def", "data_in", "(", "self", ",", "session", ",", "*", "*", "kwargs", ")", ":", "if", "session", ":", "session", ".", "data_in", "(", "*", "*", "kwargs", ")" ]
[ 776, 4 ]
[ 786, 37 ]
python
en
['en', 'error', 'th']
False
ServerSessionHandler.call_inputfuncs
(self, session, **kwargs)
Split incoming data into its inputfunc counterparts. This should be called by the serversession.data_in as sessionhandler.call_inputfunc(self, **kwargs). We also intercept OOB communication here. Args: sessions (Session): Session. Kwargs: kwarg...
Split incoming data into its inputfunc counterparts. This should be called by the serversession.data_in as sessionhandler.call_inputfunc(self, **kwargs).
def call_inputfuncs(self, session, **kwargs): """ Split incoming data into its inputfunc counterparts. This should be called by the serversession.data_in as sessionhandler.call_inputfunc(self, **kwargs). We also intercept OOB communication here. Args: sessio...
[ "def", "call_inputfuncs", "(", "self", ",", "session", ",", "*", "*", "kwargs", ")", ":", "# distribute incoming data to the correct receiving methods.", "if", "session", ":", "input_debug", "=", "session", ".", "protocol_flags", ".", "get", "(", "\"INPUTDEBUG\"", "...
[ 788, 4 ]
[ 819, 31 ]
python
en
['en', 'error', 'th']
False
force_str
(inp)
Helper to shorten code
Helper to shorten code
def force_str(inp): """Helper to shorten code""" return to_str(inp, force_string=True)
[ "def", "force_str", "(", "inp", ")", ":", "return", "to_str", "(", "inp", ",", "force_string", "=", "True", ")" ]
[ 50, 0 ]
[ 52, 41 ]
python
en
['en', 'nl', 'en']
True
TelnetOOB.__init__
(self, protocol)
Initiates by storing the protocol on itself and trying to determine if the client supports MSDP. Args: protocol (Protocol): The active protocol.
Initiates by storing the protocol on itself and trying to determine if the client supports MSDP.
def __init__(self, protocol): """ Initiates by storing the protocol on itself and trying to determine if the client supports MSDP. Args: protocol (Protocol): The active protocol. """ self.protocol = protocol self.protocol.protocol_flags['OOB'] = Fals...
[ "def", "__init__", "(", "self", ",", "protocol", ")", ":", "self", ".", "protocol", "=", "protocol", "self", ".", "protocol", ".", "protocol_flags", "[", "'OOB'", "]", "=", "False", "self", ".", "MSDP", "=", "False", "self", ".", "GMCP", "=", "False", ...
[ 83, 4 ]
[ 102, 30 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.no_msdp
(self, option)
Client reports No msdp supported or wanted. Args: option (Option): Not used.
Client reports No msdp supported or wanted.
def no_msdp(self, option): """ Client reports No msdp supported or wanted. Args: option (Option): Not used. """ # no msdp, check GMCP self.protocol.handshake_done()
[ "def", "no_msdp", "(", "self", ",", "option", ")", ":", "# no msdp, check GMCP", "self", ".", "protocol", ".", "handshake_done", "(", ")" ]
[ 104, 4 ]
[ 113, 38 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.do_msdp
(self, option)
Client reports that it supports msdp. Args: option (Option): Not used.
Client reports that it supports msdp.
def do_msdp(self, option): """ Client reports that it supports msdp. Args: option (Option): Not used. """ self.MSDP = True self.protocol.protocol_flags['OOB'] = True self.protocol.handshake_done()
[ "def", "do_msdp", "(", "self", ",", "option", ")", ":", "self", ".", "MSDP", "=", "True", "self", ".", "protocol", ".", "protocol_flags", "[", "'OOB'", "]", "=", "True", "self", ".", "protocol", ".", "handshake_done", "(", ")" ]
[ 115, 4 ]
[ 125, 38 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.no_gmcp
(self, option)
If this is reached, it means neither MSDP nor GMCP is supported. Args: option (Option): Not used.
If this is reached, it means neither MSDP nor GMCP is supported.
def no_gmcp(self, option): """ If this is reached, it means neither MSDP nor GMCP is supported. Args: option (Option): Not used. """ self.protocol.handshake_done()
[ "def", "no_gmcp", "(", "self", ",", "option", ")", ":", "self", ".", "protocol", ".", "handshake_done", "(", ")" ]
[ 127, 4 ]
[ 136, 38 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.do_gmcp
(self, option)
Called when client confirms that it can do MSDP or GMCP. Args: option (Option): Not used.
Called when client confirms that it can do MSDP or GMCP.
def do_gmcp(self, option): """ Called when client confirms that it can do MSDP or GMCP. Args: option (Option): Not used. """ self.GMCP = True self.protocol.protocol_flags['OOB'] = True self.protocol.handshake_done()
[ "def", "do_gmcp", "(", "self", ",", "option", ")", ":", "self", ".", "GMCP", "=", "True", "self", ".", "protocol", ".", "protocol_flags", "[", "'OOB'", "]", "=", "True", "self", ".", "protocol", ".", "handshake_done", "(", ")" ]
[ 138, 4 ]
[ 148, 38 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.encode_msdp
(self, cmdname, *args, **kwargs)
Encode into a valid MSDP command. Args: cmdname (str): Name of send instruction. args, kwargs (any): Arguments to OOB command. Notes: The output of this encoding will be MSDP structures on these forms: [cmdname, [], {}] -> ...
Encode into a valid MSDP command.
def encode_msdp(self, cmdname, *args, **kwargs): """ Encode into a valid MSDP command. Args: cmdname (str): Name of send instruction. args, kwargs (any): Arguments to OOB command. Notes: The output of this encoding will be MSDP structures...
[ "def", "encode_msdp", "(", "self", ",", "cmdname", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "msdp_cmdname", "=", "\"{msdp_var}{msdp_cmdname}{msdp_val}\"", ".", "format", "(", "msdp_var", "=", "MSDP_VAR", ",", "msdp_cmdname", "=", "cmdname", ",", ...
[ 152, 4 ]
[ 215, 26 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.encode_gmcp
(self, cmdname, *args, **kwargs)
Encode into GMCP messages. Args: cmdname (str): GMCP OOB command name. args, kwargs (any): Arguments to OOB command. Notes: GMCP messages will be outgoing on the following form (the non-JSON cmdname at the start is what IRE games use...
Encode into GMCP messages.
def encode_gmcp(self, cmdname, *args, **kwargs): """ Encode into GMCP messages. Args: cmdname (str): GMCP OOB command name. args, kwargs (any): Arguments to OOB command. Notes: GMCP messages will be outgoing on the following form (the non...
[ "def", "encode_gmcp", "(", "self", ",", "cmdname", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "cmdname", "in", "EVENNIA_TO_GMCP", ":", "gmcp_cmdname", "=", "EVENNIA_TO_GMCP", "[", "cmdname", "]", "elif", "\"_\"", "in", "cmdname", ":", "gm...
[ 217, 4 ]
[ 270, 26 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.decode_msdp
(self, data)
Decodes incoming MSDP data. Args: data (str or list): MSDP data. Notes: Clients should always send MSDP data on one of the following forms: cmdname '' -> [cmdname, [], {}] cmdname val -> [cmdname, [val], {}] ...
Decodes incoming MSDP data.
def decode_msdp(self, data): """ Decodes incoming MSDP data. Args: data (str or list): MSDP data. Notes: Clients should always send MSDP data on one of the following forms: cmdname '' -> [cmdname, [], {}] cmdname val...
[ "def", "decode_msdp", "(", "self", ",", "data", ")", ":", "if", "hasattr", "(", "data", ",", "\"__iter__\"", ")", ":", "data", "=", "\"\"", ".", "join", "(", "data", ")", "# print(\"decode_msdp in:\", data) # DEBUG", "tables", "=", "{", "}", "arrays", "="...
[ 272, 4 ]
[ 355, 37 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.decode_gmcp
(self, data)
Decodes incoming GMCP data on the form 'varname <structure>'. Args: data (str or list): GMCP data. Notes: Clients send data on the form "Module.Submodule.Cmdname <structure>". We assume the structure is valid JSON. The following is parsed into ...
Decodes incoming GMCP data on the form 'varname <structure>'.
def decode_gmcp(self, data): """ Decodes incoming GMCP data on the form 'varname <structure>'. Args: data (str or list): GMCP data. Notes: Clients send data on the form "Module.Submodule.Cmdname <structure>". We assume the structure is valid JSON. ...
[ "def", "decode_gmcp", "(", "self", ",", "data", ")", ":", "if", "hasattr", "(", "data", ",", "\"__iter__\"", ")", ":", "data", "=", "\"\"", ".", "join", "(", "data", ")", "# print(\"decode_gmcp in:\", data) # DEBUG", "if", "data", ":", "try", ":", "cmdnam...
[ 357, 4 ]
[ 403, 70 ]
python
en
['en', 'error', 'th']
False
TelnetOOB.data_out
(self, cmdname, *args, **kwargs)
Return a MSDP- or GMCP-valid subnegotiation across the protocol. Args: cmdname (str): OOB-command name. args, kwargs (any): Arguments to OOB command.
Return a MSDP- or GMCP-valid subnegotiation across the protocol.
def data_out(self, cmdname, *args, **kwargs): """ Return a MSDP- or GMCP-valid subnegotiation across the protocol. Args: cmdname (str): OOB-command name. args, kwargs (any): Arguments to OOB command. """ kwargs.pop("options", None) if self.MSDP:...
[ "def", "data_out", "(", "self", ",", "cmdname", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "kwargs", ".", "pop", "(", "\"options\"", ",", "None", ")", "if", "self", ".", "MSDP", ":", "encoded_oob", "=", "self", ".", "encode_msdp", "(", "c...
[ 407, 4 ]
[ 424, 74 ]
python
en
['en', 'error', 'th']
False
get_agent
(**kwargs)
r""" Return opt-initialized agent. :param kwargs: any kwargs you want to set using parser.set_params(\*\*kwargs)
r""" Return opt-initialized agent.
def get_agent(**kwargs): r""" Return opt-initialized agent. :param kwargs: any kwargs you want to set using parser.set_params(\*\*kwargs) """ if 'no_cuda' not in kwargs: kwargs['no_cuda'] = True from parlai.core.params import ParlaiParser parser = ParlaiParser() MockTorchAgent....
[ "def", "get_agent", "(", "*", "*", "kwargs", ")", ":", "if", "'no_cuda'", "not", "in", "kwargs", ":", "kwargs", "[", "'no_cuda'", "]", "=", "True", "from", "parlai", ".", "core", ".", "params", "import", "ParlaiParser", "parser", "=", "ParlaiParser", "("...
[ 25, 0 ]
[ 39, 30 ]
python
cy
['en', 'cy', 'hi']
False
Restarter.handleRestartRequest
(self, req: Request)
Handles transaction of type POOL_RESTART Can schedule or cancel restart to a newer version at specified time :param req:
Handles transaction of type POOL_RESTART Can schedule or cancel restart to a newer version at specified time
def handleRestartRequest(self, req: Request) -> None: """ Handles transaction of type POOL_RESTART Can schedule or cancel restart to a newer version at specified time :param req: """ txn = req.operation if txn[TXN_TYPE] != POOL_RESTART: return...
[ "def", "handleRestartRequest", "(", "self", ",", "req", ":", "Request", ")", "->", "None", ":", "txn", "=", "req", ".", "operation", "if", "txn", "[", "TXN_TYPE", "]", "!=", "POOL_RESTART", ":", "return", "action", "=", "txn", "[", "ACTION", "]", "if",...
[ 47, 4 ]
[ 77, 38 ]
python
en
['en', 'error', 'th']
False
Restarter._scheduleRestart
(self, when: Union[datetime, str], failTimeout)
Schedules node restart to a newer version :param version: version to restart to :param when: restart time
Schedules node restart to a newer version
def _scheduleRestart(self, when: Union[datetime, str], failTimeout) -> None: """ Schedules node restart to a newer version :param version: version to restart to :param when: restart time """ logger.info("{}'s restarter pr...
[ "def", "_scheduleRestart", "(", "self", ",", "when", ":", "Union", "[", "datetime", ",", "str", "]", ",", "failTimeout", ")", "->", "None", ":", "logger", ".", "info", "(", "\"{}'s restarter processing restart\"", ".", "format", "(", "self", ")", ")", "if"...
[ 108, 4 ]
[ 136, 40 ]
python
en
['en', 'error', 'th']
False
Restarter._cancelScheduledRestart
(self, justification=None)
Cancels scheduled restart :param when: time restart was scheduled to :param version: version restart scheduled for
Cancels scheduled restart
def _cancelScheduledRestart(self, justification=None) -> None: """ Cancels scheduled restart :param when: time restart was scheduled to :param version: version restart scheduled for """ if self.scheduledAction: why_prefix = ": " why = justificati...
[ "def", "_cancelScheduledRestart", "(", "self", ",", "justification", "=", "None", ")", "->", "None", ":", "if", "self", ".", "scheduledAction", ":", "why_prefix", "=", "\": \"", "why", "=", "justification", "if", "justification", "is", "None", ":", "why_prefix...
[ 138, 4 ]
[ 168, 40 ]
python
en
['en', 'error', 'th']
False
Restarter._callRestartAgent
(self, ev_data: RestartLogData, failTimeout)
Callback which is called when restart time come. Writes restart record to restart log and asks node control service to perform restart :param ev_data: restart event data :param version: version to restart to
Callback which is called when restart time come. Writes restart record to restart log and asks node control service to perform restart
def _callRestartAgent(self, ev_data: RestartLogData, failTimeout) -> None: """ Callback which is called when restart time come. Writes restart record to restart log and asks node control service to perform restart :param ev_data: restart event data :param version: versio...
[ "def", "_callRestartAgent", "(", "self", ",", "ev_data", ":", "RestartLogData", ",", "failTimeout", ")", "->", "None", ":", "logger", ".", "info", "(", "\"{}'s restart calling agent for restart\"", ".", "format", "(", "self", ")", ")", "self", ".", "_actionLog",...
[ 170, 4 ]
[ 185, 58 ]
python
en
['en', 'error', 'th']
False
Restarter._declareTimeoutExceeded
(self, ev_data: RestartLogData)
This function is called when time for restart is up
This function is called when time for restart is up
def _declareTimeoutExceeded(self, ev_data: RestartLogData): """ This function is called when time for restart is up """ logger.info("Timeout exceeded for {}".format(ev_data.when)) last = self._actionLog.last_event if (last and last.ev_type == RestartLog.Events.failed and ...
[ "def", "_declareTimeoutExceeded", "(", "self", ",", "ev_data", ":", "RestartLogData", ")", ":", "logger", ".", "info", "(", "\"Timeout exceeded for {}\"", ".", "format", "(", "ev_data", ".", "when", ")", ")", "last", "=", "self", ".", "_actionLog", ".", "las...
[ 212, 4 ]
[ 225, 36 ]
python
en
['en', 'error', 'th']
False
_case_sensitive_replace
(string, old, new)
Replace text, retaining exact case. Args: string (str): String in which to perform replacement. old (str): Word or substring to replace. new (str): What to replace `old` with. Returns: repl_string (str): Version of string where instances of `old` has been repla...
Replace text, retaining exact case.
def _case_sensitive_replace(string, old, new): """ Replace text, retaining exact case. Args: string (str): String in which to perform replacement. old (str): Word or substring to replace. new (str): What to replace `old` with. Returns: repl_string (str): Version of stri...
[ "def", "_case_sensitive_replace", "(", "string", ",", "old", ",", "new", ")", ":", "def", "repl", "(", "match", ")", ":", "current", "=", "match", ".", "group", "(", ")", "# treat multi-word sentences word-by-word", "old_words", "=", "current", ".", "split", ...
[ 68, 0 ]
[ 113, 34 ]
python
en
['en', 'error', 'th']
False
rename_in_tree
(path, in_list, out_list, excl_list, fileend_list, is_interactive)
Rename across a recursive directory structure. Args: path (str): Root directory to traverse. All subdirectories will be visited. in_list (list): List of src words to replace. out_list (list): Matching list of words to replace with. excl_list (list): List of paths to...
Rename across a recursive directory structure.
def rename_in_tree(path, in_list, out_list, excl_list, fileend_list, is_interactive): """ Rename across a recursive directory structure. Args: path (str): Root directory to traverse. All subdirectories will be visited. in_list (list): List of src words to replace. out_li...
[ "def", "rename_in_tree", "(", "path", ",", "in_list", ",", "out_list", ",", "excl_list", ",", "fileend_list", ",", "is_interactive", ")", ":", "repl_mapping", "=", "zip", "(", "in_list", ",", "out_list", ")", "for", "root", ",", "dirs", ",", "files", "in",...
[ 116, 0 ]
[ 182, 37 ]
python
en
['en', 'error', 'th']
False
rename_in_file
(path, in_list, out_list, is_interactive)
Args: path (str): Path to file in which to perform renaming. in_list (list): List of src words to replace. out_list (list): Matching list of words to replace with. is_interactive (bool): If we should stop to ask about the replacements in each file.
Args: path (str): Path to file in which to perform renaming. in_list (list): List of src words to replace. out_list (list): Matching list of words to replace with. is_interactive (bool): If we should stop to ask about the replacements in each file.
def rename_in_file(path, in_list, out_list, is_interactive): """ Args: path (str): Path to file in which to perform renaming. in_list (list): List of src words to replace. out_list (list): Matching list of words to replace with. is_interactive (bool): If we should stop to ask abo...
[ "def", "rename_in_file", "(", "path", ",", "in_list", ",", "out_list", ",", "is_interactive", ")", ":", "print", "(", "\"-- %s\"", "%", "path", ")", "org_text", "=", "\"\"", "new_text", "=", "None", "if", "os", ".", "path", ".", "isdir", "(", "path", "...
[ 185, 0 ]
[ 286, 28 ]
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 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.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\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
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\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' 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 family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
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] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' 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 size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Font.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.ohlc.hoverlabel.Font` color co...
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
Sets the font used for `title`. 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: - An instance of :class:`plotly.graph_objs.funnelarea.title.Font` - A dict...
Sets the font used for `title`. 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: - An instance of :class:`plotly.graph_objs.funnelarea.title.Font` - A dict...
def font(self): """ Sets the font used for `title`. 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: - An instance of :class:`plotly.graph_objs.funnelarea.tit...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 63, 27 ]
python
en
['en', 'error', 'th']
False
Title.position
(self)
Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. The 'position' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left'...
Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. The 'position' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left'...
def position(self): """ Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. The 'position' property is an enumeration that may be specified as: - One of the following enumeration valu...
[ "def", "position", "(", "self", ")", ":", "return", "self", "[", "\"position\"", "]" ]
[ 72, 4 ]
[ 86, 31 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specif...
Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specif...
def text(self): """ Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 95, 4 ]
[ 110, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, position=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.funnelarea.Title` font Sets the font used for `title`. Note that the ti...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.funnelarea.Title` font Sets the font used for `title`. Note that the ti...
def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.fun...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "position", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\...
[ 137, 4 ]
[ 214, 34 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.title.Font` ...
Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.title.Font` ...
def font(self): """ Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.tern...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A numb...
Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A numb...
def text(self): """ Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Title` font Sets this axis' title font. Note that ...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Title` font Sets this axis' title font. Note that ...
def __init__(self, arg=None, font=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.cax...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ")", "if", "\"_parent\"", ...
[ 98, 4 ]
[ 166, 34 ]
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\"", "]" ]
[ 15, 4 ]
[ 68, 28 ]
python
en
['en', 'error', 'th']
False
Line.outliercolor
(self)
Sets the border line color of the outlier sample points. Defaults to marker.color The 'outliercolor' 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%,...
Sets the border line color of the outlier sample points. Defaults to marker.color The 'outliercolor' 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%,...
def outliercolor(self): """ Sets the border line color of the outlier sample points. Defaults to marker.color The 'outliercolor' 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...
[ "def", "outliercolor", "(", "self", ")", ":", "return", "self", "[", "\"outliercolor\"", "]" ]
[ 77, 4 ]
[ 128, 35 ]
python
en
['en', 'error', 'th']
False
Line.outlierwidth
(self)
Sets the border line width (in px) of the outlier sample points. The 'outlierwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the border line width (in px) of the outlier sample points. The 'outlierwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlierwidth(self): """ Sets the border line width (in px) of the outlier sample points. The 'outlierwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ r...
[ "def", "outlierwidth", "(", "self", ")", ":", "return", "self", "[", "\"outlierwidth\"", "]" ]
[ 137, 4 ]
[ 149, 35 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the width (in px) of the lines bounding the marker points. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the lines bounding the marker points. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf]
def width(self): """ Sets the width (in px) of the lines bounding the marker points. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 158, 4 ]
[ 169, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
( self, arg=None, color=None, outliercolor=None, outlierwidth=None, width=None, **kwargs )
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.marker.Line` color Sets themarker.linecolor. It accepts either a spe...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.marker.Line` color Sets themarker.linecolor. It accepts either a spe...
def __init__( self, arg=None, color=None, outliercolor=None, outlierwidth=None, width=None, **kwargs ): """ Construct a new Line object Parameters ---------- arg dict of properties compatible with th...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "outliercolor", "=", "None", ",", "outlierwidth", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Line", ",", "self",...
[ 197, 4 ]
[ 287, 34 ]
python
en
['en', 'error', 'th']
False
EvenniaGameIndexService._die_on_bad_request
(self)
If it becomes apparent that our configuration is generating improperly formed messages to EGI, we don't want to keep sending bad messages. Stop the service so we're not wasting resources.
If it becomes apparent that our configuration is generating improperly formed messages to EGI, we don't want to keep sending bad messages. Stop the service so we're not wasting resources.
def _die_on_bad_request(self): """ If it becomes apparent that our configuration is generating improperly formed messages to EGI, we don't want to keep sending bad messages. Stop the service so we're not wasting resources. """ logger.log_infomsg( "Shutting dow...
[ "def", "_die_on_bad_request", "(", "self", ")", ":", "logger", ".", "log_infomsg", "(", "\"Shutting down Evennia Game Index client service due to \"", "\"invalid configuration.\"", ")", "self", ".", "stopService", "(", ")" ]
[ 44, 4 ]
[ 53, 26 ]
python
en
['en', 'error', 'th']
False
TestMemnn.test_labelcands_nomemnn
(self)
This test uses a single-turn task, so doesn't test memories.
This test uses a single-turn task, so doesn't test memories.
def test_labelcands_nomemnn(self): """ This test uses a single-turn task, so doesn't test memories. """ valid, test = testing_utils.train_model( dict( task='integration_tests:overfit', model='memnn', optimizer='sgd', ...
[ "def", "test_labelcands_nomemnn", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "train_model", "(", "dict", "(", "task", "=", "'integration_tests:overfit'", ",", "model", "=", "'memnn'", ",", "optimizer", "=", "'sgd'", ",", "lr", "=...
[ 16, 4 ]
[ 42, 48 ]
python
en
['en', 'error', 'th']
False
TestMemnn.test_backcomp
(self)
Tests that the memnn model files continue to works over time.
Tests that the memnn model files continue to works over time.
def test_backcomp(self): """ Tests that the memnn model files continue to works over time. """ valid, test = testing_utils.eval_model( dict( task='integration_tests', model='memnn', model_file='zoo:unittest/memnn/model', ...
[ "def", "test_backcomp", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests'", ",", "model", "=", "'memnn'", ",", "model_file", "=", "'zoo:unittest/memnn/model'", ",", "dict_f...
[ 44, 4 ]
[ 61, 50 ]
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.scatterpolar.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the...
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.scatterpolar.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the...
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.scatterpolar.marker.colorbar.Tickfont` - A dict of string/value properties that wi...
[ "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.scatterpolar.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to...
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.scatterpolar.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to...
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.scatterpolar.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value propert...
[ "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.scatterpolar.m arker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolar.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatsto...
When used in a template (as layout.template.data.scatterpolar.m arker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolar.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatsto...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.scatterpolar.m arker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolar.marker.colorbar.tickformatstops The 'tickformatstopdefau...
[ "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.scatterpolar.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properti...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properti...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use scatterpolar.marker.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 scatterpolar.marker.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 scatterpolar.marker.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 ...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use scatterpolar.marker.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 enumerati...
Deprecated: Please use scatterpolar.marker.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 enumerati...
def titleside(self): """ Deprecated: Please use scatterpolar.marker.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...
[ "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.scatterpolar.marker.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.scatterpolar.marker.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...
[ 1484, 4 ]
[ 1945, 34 ]
python
en
['en', 'error', 'th']
False
TestCredentialPreview.test_init
(self)
Test initializer.
Test initializer.
def test_init(self): """Test initializer.""" assert CRED_PREVIEW.attributes
[ "def", "test_init", "(", "self", ")", ":", "assert", "CRED_PREVIEW", ".", "attributes" ]
[ 49, 4 ]
[ 51, 38 ]
python
de
['de', 'pl', 'en']
False
TestCredentialPreview.test_preview
(self)
Test preview for attr-dict and metadata utilities.
Test preview for attr-dict and metadata utilities.
def test_preview(self): """Test preview for attr-dict and metadata utilities.""" assert CRED_PREVIEW.attr_dict(decode=False) == { "test": "123", "hello": "world", "icon": "cG90YXRv", } assert CRED_PREVIEW.attr_dict(decode=True) == { "test":...
[ "def", "test_preview", "(", "self", ")", ":", "assert", "CRED_PREVIEW", ".", "attr_dict", "(", "decode", "=", "False", ")", "==", "{", "\"test\"", ":", "\"123\"", ",", "\"hello\"", ":", "\"world\"", ",", "\"icon\"", ":", "\"cG90YXRv\"", ",", "}", "assert",...
[ 57, 4 ]
[ 71, 9 ]
python
en
['en', 'en', 'en']
True
TestCredentialPreview.test_deserialize
(self)
Test deserialize.
Test deserialize.
def test_deserialize(self): """Test deserialize.""" obj = { "@type": CREDENTIAL_PREVIEW, "attributes": [ {"name": "name", "value": "Alexander Delarge"}, {"name": "pic", "mime-type": "image/png", "value": "Abcd0123..."}, ], } ...
[ "def", "test_deserialize", "(", "self", ")", ":", "obj", "=", "{", "\"@type\"", ":", "CREDENTIAL_PREVIEW", ",", "\"attributes\"", ":", "[", "{", "\"name\"", ":", "\"name\"", ",", "\"value\"", ":", "\"Alexander Delarge\"", "}", ",", "{", "\"name\"", ":", "\"p...
[ 73, 4 ]
[ 84, 54 ]
python
ca
['ca', 'da', 'fr']
False
TestCredentialPreview.test_serialize
(self)
Test serialization.
Test serialization.
def test_serialize(self): """Test serialization.""" cred_preview_dict = CRED_PREVIEW.serialize() assert cred_preview_dict == { "@type": CREDENTIAL_PREVIEW, "attributes": [ {"name": "test", "value": "123"}, {"name": "hello", "value": "world...
[ "def", "test_serialize", "(", "self", ")", ":", "cred_preview_dict", "=", "CRED_PREVIEW", ".", "serialize", "(", ")", "assert", "cred_preview_dict", "==", "{", "\"@type\"", ":", "CREDENTIAL_PREVIEW", ",", "\"attributes\"", ":", "[", "{", "\"name\"", ":", "\"test...
[ 86, 4 ]
[ 97, 9 ]
python
en
['en', 'fy', 'en']
False
TestCredentialPreviewSchema.test_make_model
(self)
Test making model.
Test making model.
def test_make_model(self): """Test making model.""" data = CRED_PREVIEW.serialize() model_instance = CredentialPreview.deserialize(data) assert isinstance(model_instance, CredentialPreview)
[ "def", "test_make_model", "(", "self", ")", ":", "data", "=", "CRED_PREVIEW", ".", "serialize", "(", ")", "model_instance", "=", "CredentialPreview", ".", "deserialize", "(", "data", ")", "assert", "isinstance", "(", "model_instance", ",", "CredentialPreview", "...
[ 103, 4 ]
[ 107, 60 ]
python
en
['en', 'no', 'en']
True
_webwallet_support
(coin, support)
Check the "webwallet" support property. If set, check that at least one of the backends run on trezor.io. If yes, assume we support the coin in our wallet. Otherwise it's probably working with a custom backend, which means don't link to our wallet.
Check the "webwallet" support property. If set, check that at least one of the backends run on trezor.io. If yes, assume we support the coin in our wallet. Otherwise it's probably working with a custom backend, which means don't link to our wallet.
def _webwallet_support(coin, support): """Check the "webwallet" support property. If set, check that at least one of the backends run on trezor.io. If yes, assume we support the coin in our wallet. Otherwise it's probably working with a custom backend, which means don't link to our wallet. """ ...
[ "def", "_webwallet_support", "(", "coin", ",", "support", ")", ":", "if", "not", "support", ".", "get", "(", "\"webwallet\"", ")", ":", "return", "False", "return", "any", "(", "\".trezor.io\"", "in", "url", "for", "url", "in", "coin", "[", "\"blockbook\""...
[ 184, 0 ]
[ 193, 82 ]
python
en
['en', 'en', 'en']
True
complete_task
(task_id)
Mark the task in the event handler as complete. Args: task_id (int): the task ID. Note: This function should be called automatically for individual tasks.
Mark the task in the event handler as complete.
def complete_task(task_id): """ Mark the task in the event handler as complete. Args: task_id (int): the task ID. Note: This function should be called automatically for individual tasks. """ try: script = ScriptDB.objects.get(db_key="event_handler") except ScriptDB...
[ "def", "complete_task", "(", "task_id", ")", ":", "try", ":", "script", "=", "ScriptDB", ".", "objects", ".", "get", "(", "db_key", "=", "\"event_handler\"", ")", "except", "ScriptDB", ".", "DoesNotExist", ":", "logger", ".", "log_trace", "(", "\"Can't get t...
[ 640, 0 ]
[ 663, 50 ]
python
en
['en', 'error', 'th']
False
EventHandler.at_script_creation
(self)
Hook called when the script is created.
Hook called when the script is created.
def at_script_creation(self): """Hook called when the script is created.""" self.key = "event_handler" self.desc = "Global event handler" self.persistent = True # Permanent data to be stored self.db.callbacks = {} self.db.to_valid = [] self.db.locked = []...
[ "def", "at_script_creation", "(", "self", ")", ":", "self", ".", "key", "=", "\"event_handler\"", "self", ".", "desc", "=", "\"Global event handler\"", "self", ".", "persistent", "=", "True", "# Permanent data to be stored", "self", ".", "db", ".", "callbacks", ...
[ 36, 4 ]
[ 48, 26 ]
python
en
['en', 'en', 'en']
True
EventHandler.at_start
(self)
Set up the event system when starting. Note that this hook is called every time the server restarts (including when it's reloaded). This hook performs the following tasks: - Create temporarily stored events. - Generate locals (individual events' namespace). - Loa...
Set up the event system when starting.
def at_start(self): """Set up the event system when starting. Note that this hook is called every time the server restarts (including when it's reloaded). This hook performs the following tasks: - Create temporarily stored events. - Generate locals (individual even...
[ "def", "at_start", "(", "self", ")", ":", "self", ".", "ndb", ".", "events", "=", "{", "}", "for", "typeclass", ",", "name", ",", "variables", ",", "help_text", ",", "custom_call", ",", "custom_add", "in", "EVENTS", ":", "self", ".", "add_event", "(", ...
[ 50, 4 ]
[ 97, 105 ]
python
en
['en', 'en', 'en']
True
EventHandler.get_events
(self, obj)
Return a dictionary of events on this object. Args: obj (Object or typeclass): the connected object or a general typeclass. Returns: A dictionary of the object's events. Notes: Events would define what the object can have as callbacks. ...
Return a dictionary of events on this object.
def get_events(self, obj): """ Return a dictionary of events on this object. Args: obj (Object or typeclass): the connected object or a general typeclass. Returns: A dictionary of the object's events. Notes: Events would define what the obje...
[ "def", "get_events", "(", "self", ",", "obj", ")", ":", "events", "=", "{", "}", "all_events", "=", "self", ".", "ndb", ".", "events", "classes", "=", "Queue", "(", ")", "if", "isinstance", "(", "obj", ",", "type", ")", ":", "classes", ".", "put", ...
[ 99, 4 ]
[ 144, 21 ]
python
en
['en', 'error', 'th']
False
EventHandler.get_variable
(self, variable_name)
Return the variable defined in the locals. This can be very useful to check the value of a variable that can be modified in an event, and whose value will be used in code. This system allows additional customization. Args: variable_name (str): the name of the variable to return. ...
Return the variable defined in the locals.
def get_variable(self, variable_name): """ Return the variable defined in the locals. This can be very useful to check the value of a variable that can be modified in an event, and whose value will be used in code. This system allows additional customization. Args: variabl...
[ "def", "get_variable", "(", "self", ",", "variable_name", ")", ":", "return", "self", ".", "ndb", ".", "current_locals", ".", "get", "(", "variable_name", ")" ]
[ 146, 4 ]
[ 169, 57 ]
python
en
['en', 'error', 'th']
False