Hi team, In Kedro >= 0.19, is Jinja for-loop su...
# questions
y
Hi team, In Kedro >= 0.19, is Jinja for-loop supported in
.yaml
catalog files? I am familiar with dataset factories, but was wondering if that loop is possible. In 0.18 I think it was. The syntax IIRC is:
Copy code
{% for variable in [‘option_1’, ‘option_2’] %}
…
{% endfor %}
d
no - OmegaConf replaces it
thankyou 1
r
Does OmegaConf have for-loop-like functionality? I searched the docs and haven't seen anything to that effect
y
@Richard Purvis the dataset factories kind of help achieve the same thing In many contexts they are actually more convenient than a for loop
r
Oh hey. Yes I agree, just curious if the functionality exists
d
intentionally it doesn’t
is what you’re looking for covered in this https://getindata.com/blog/kedro-dynamic-pipelines/
👍 1
r
I think probably so for @Yury Fedotov. I would consider my question answered