import_scenario() function

Import from an archive zip file containing an exported scenario into the current Taipy application.

The zip file should be created by the taipy.export_scenario() method, which contains all related entities of the scenario. All entities should belong to the same version that is compatible with the current Taipy application version.

Parameters:

Name Type Description Default
input_path Union[str, Path]

The path to the archive scenario to import. If the path doesn't exist, an exception is raised.

required
override bool

If True, override the entities if existed. The default value is False.

False
Return

The imported scenario.

Raises:

Type Description
FileNotFoundError

If the import path does not exist.

ImportArchiveDoesntContainAnyScenario

If the unzip folder doesn't contain any scenario.

ConflictedConfigurationError

If the configuration of the imported scenario is conflicted with the current one.