CommonLabOptions

pydantic model controller.models.v1.lab.CommonLabOptions

Options shared by both the input and output model for lab options.

Parameters:

data (Any)

Show JSON schema
{
   "title": "CommonLabOptions",
   "description": "Options shared by both the input and output model for lab options.",
   "type": "object",
   "properties": {
      "size": {
         "$ref": "#/$defs/LabSize",
         "description": "Size of image, chosen from sizes specified in the controller configuration",
         "examples": [
            "medium"
         ],
         "title": "Image size"
      },
      "enable_debug": {
         "default": false,
         "description": "If true, set the ``DEBUG`` environment variable when spawning the lab, which enables additional debug logging",
         "examples": [
            true
         ],
         "title": "Enable debugging in spawned Lab",
         "type": "boolean"
      },
      "reset_user_env": {
         "default": false,
         "description": "If true, set the ``RESET_USER_ENV`` environment variable when spawning the lab, which tells the lab to move aside the user environment directories (``.cache``, ``.conda``, ``.jupyter``, ``.local``) and files (``.user_setups``). This can be used to recover from user configuration errors that break lab startup.",
         "examples": [
            true
         ],
         "title": "Move aside user environment",
         "type": "boolean"
      }
   },
   "$defs": {
      "LabSize": {
         "description": "Allowable names for pod sizes.\n\nTaken from `d20 creature sizes`_.",
         "enum": [
            "fine",
            "diminutive",
            "tiny",
            "small",
            "medium",
            "large",
            "huge",
            "gargantuan",
            "colossal",
            "custom"
         ],
         "title": "LabSize",
         "type": "string"
      }
   },
   "required": [
      "size"
   ]
}

Fields:
field enable_debug: Annotated[bool, Field(title='Enable debugging in spawned Lab', description='If true, set the DEBUG environment variable when spawning the lab, which enables additional debug logging', examples=[True])] = False

If true, set the DEBUG environment variable when spawning the lab, which enables additional debug logging

field reset_user_env: Annotated[bool, Field(title='Move aside user environment', description='If true, set the RESET_USER_ENV environment variable when spawning the lab, which tells the lab to move aside the user environment directories (.cache, .conda, .jupyter, .local) and files (.user_setups). This can be used to recover from user configuration errors that break lab startup.', examples=[True])] = False

If true, set the RESET_USER_ENV environment variable when spawning the lab, which tells the lab to move aside the user environment directories (.cache, .conda, .jupyter, .local) and files (.user_setups). This can be used to recover from user configuration errors that break lab startup.

field size: Annotated[LabSize, Field(title='Image size', description='Size of image, chosen from sizes specified in the controller configuration', examples=[LabSize.MEDIUM])] [Required]

Size of image, chosen from sizes specified in the controller configuration