Switching workspaces in Blender using Python API
Workspaces in Blender are saved sets of work areas (windows of the desired type). Typically, switching between them is done by clicking on the tab with the name of the workspace at the top of the Blender UI. We can also switch between workspaces using the Blender Python API.