in2lambda.api.response_area.Images¶

class in2lambda.api.response_area.Images(*, answer: Any = None, evaluation_function: str, 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 = False, live_preview: bool = False, include_in_pdf: bool = False, save_allowed: bool = False, separate_feedback: bool = True, common_feedback_color: str = '#C4CDD5', correct_feedback_color: str = '#22C55E', correct_feedback_prefix: str = 'Correct', incorrect_feedback_color: str = '#ff5630', incorrect_feedback_prefix: str = 'Incorrect', tests: list[Test] = <factory>, cases: list[Case] = <factory>, max_images: int = 3, allowed_types: list[str] = <factory>, max_size_mb: int = 10, resize_max_side: int = 0)[source]¶

Bases: ResponseArea

Upload images.

__init__(*, answer: Any = None, evaluation_function: str, 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 = False, live_preview: bool = False, include_in_pdf: bool = False, save_allowed: bool = False, separate_feedback: bool = True, common_feedback_color: str = '#C4CDD5', correct_feedback_color: str = '#22C55E', correct_feedback_prefix: str = 'Correct', incorrect_feedback_color: str = '#ff5630', incorrect_feedback_prefix: str = 'Incorrect', tests: list[Test] = <factory>, cases: list[Case] = <factory>, max_images: int = 3, allowed_types: list[str] = <factory>, max_size_mb: int = 10, resize_max_side: int = 0) → None¶

Methods

__init__(*, answer, evaluation_function, ...)

Attributes

answer

check_button_text

Replaces the label of the check button; left out of the JSON when empty.

common_feedback_color

content_after

Markdown shown after the box, before the next one.

correct_feedback_color

correct_feedback_prefix

display_input_symbols

grade_params

include_in_pdf

incorrect_feedback_color

incorrect_feedback_prefix

live_preview

max_images

max_size_mb

post_text

pre_text

resize_max_side

The longest side images are resized to; 0 leaves them as they are.

response_type

save_allowed

separate_feedback

allowed_types

evaluation_function

input_symbols

tests

cases

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.

resize_max_side: int = 0¶

The longest side images are resized to; 0 leaves them as they are.