in2lambda.api.response_area.Matrix¶
- class in2lambda.api.response_area.Matrix(*, answer: list[list[str]] = <factory>, evaluation_function: str = <default>, grade_params: dict[str, ~typing.Any] | None=None, pre_text: str = '', post_text: str = '', content_after: str = '', check_button_text: str = '', input_symbols: list[InputSymbol] = <factory>, display_input_symbols: bool = <default>, live_preview: bool = <default>, include_in_pdf: bool = <default>, save_allowed: bool = <default>, separate_feedback: bool = <default>, common_feedback_color: str = <default>, correct_feedback_color: str = <default>, correct_feedback_prefix: str = <default>, incorrect_feedback_color: str = <default>, incorrect_feedback_prefix: str = <default>, tests: list[Test] = <factory>, accept: list[Any] = <factory>, reject: list[Any] = <factory>, cases: list[Case] = <factory>)[source]¶
Bases:
ResponseAreaA table, with parentheses displayed around it, with the shape of
answer.- __init__(*, answer: list[list[str]] = <factory>, evaluation_function: str = <default>, grade_params: dict[str, ~typing.Any] | None=None, pre_text: str = '', post_text: str = '', content_after: str = '', check_button_text: str = '', input_symbols: list[InputSymbol] = <factory>, display_input_symbols: bool = <default>, live_preview: bool = <default>, include_in_pdf: bool = <default>, save_allowed: bool = <default>, separate_feedback: bool = <default>, common_feedback_color: str = <default>, correct_feedback_color: str = <default>, correct_feedback_prefix: str = <default>, incorrect_feedback_color: str = <default>, incorrect_feedback_prefix: str = <default>, tests: list[Test] = <factory>, accept: list[Any] = <factory>, reject: list[Any] = <factory>, cases: list[Case] = <factory>) None¶
Methods
__init__(*, answer, evaluation_function, ...)Attributes
answerReplaces the label of the check button; left out of the JSON when empty.
common_feedback_colorMarkdown shown after the box, before the next one.
correct_feedback_colorcorrect_feedback_prefixdisplay_input_symbolsevaluation_functiongrade_paramsinclude_in_pdfincorrect_feedback_colorincorrect_feedback_prefixlive_previewThe types a test payload, a sample response, may take.
post_textpre_textresponse_typesave_allowedseparate_feedbackinput_symbolstestsResponses that must be marked correct; each is written as a passing test.
Responses that must be marked incorrect; each is written as a failing test.
cases- accept: list[Any]¶
Responses that must be marked correct; each is written as a passing test.
- check_button_text: str = ''¶
Replaces the label of the check button; left out of the JSON when empty.
- content_after: str = ''¶
Markdown shown after the box, before the next one.
- payload_types: ClassVar[tuple[type, ...]] = (<class 'list'>,)¶
The types a test payload, a sample response, may take.
- reject: list[Any]¶
Responses that must be marked incorrect; each is written as a failing test.