if __name__ == "__main__"
pipelineor a step instance
stepdecorators and lead to failures at later stages if more steps and pipelines are decorated there.
contextargument, if they don't invalidate the caching behavior
zenml flavor listand installing the missing integration(s) with
zenml integration install.
.dockerignorein the ZenML repository to exclude files and folders from the container images built by ZenML for containerized environments
get_pipeline(pipeline=...)instead of indexing (
[-1]) to retrieve previous pipelines
Repositoryare sorted by time of first run, so the pipeline at
[-1]might not be the one you are expecting.
.zendirectory OR have your imports relative to the root of your repository in cases when you don't have a
.zendirectory (=> which means to have the runner at the root of your repository)
.zenrepository root to resolve the class path of your functions and classes in a way that is portable across different types of environments such as containers. If a repository is not present, the location of the main Python module is used as an implicit repository root.
zenml GROUP explainto explain what everything is
zenml stack upafter switching stacks (but this is also enforced by validations that check if the stack is up)