complete#

scikitplot._ipymagic.complete(line)[source]#

Return the completions of the last word of a %scikitplot line.

Parameters:
linestr

The line typed so far, magic name included or not.

Returns:
list of str

Sorted candidates that start with the word being typed.

Parameters:

line (str)

Return type:

list[str]

Examples

>>> from scikitplot._ipymagic import complete
>>> "env" in complete("%scikitplot e")
True
>>> complete("%scikitplot info --format ")
['json', 'text', 'toml', 'yaml']