in2lambda.api.response_area.InputSymbolΒΆ
- class in2lambda.api.response_area.InputSymbol(symbol: str, code: str, aliases: list[str] = <factory>, is_visible: bool = True)[source]ΒΆ
Bases:
objectDefines symbols and how to enter them into a response area.
Fields per symbol: -
symbolfor display to users (markdown, typically dollar-delimited math latex) -codefor users to input (plan text, fed to the algorithm and also be rendered to users within backticks as code) -aliaseslist of alternative code inputs, to be substituted by the code field when evaluating -is_visibleBoolean, whether to display input symbol info to users (in addition to always sending it to the evaluator to help parsing)- __init__(symbol: str, code: str, aliases: list[str] = <factory>, is_visible: bool = True) NoneΒΆ
Methods
__init__(symbol, code, aliases, is_visible)Attributes
is_visiblesymbolcodealiases