Skip to content

Taipy.core.get scenarios

Retrieve a list of existing scenarios filtered by cycle or tag.

This function allows you to retrieve a list of scenarios based on optional filtering criteria. If both a cycle and a tag are provided, the returned list contains scenarios that belong to the specified cycle and also have the specified tag.

Parameters:

Name Type Description Default
cycle Optional[Cycle]

The optional Cycle to filter scenarios by.

None
tag Optional[str]

The optional tag to filter scenarios by.

None

Returns:

Type Description
List[Scenario]

The list of scenarios filtered by cycle or tag. If no filtering criteria are provided, this method returns all existing scenarios.