https://kedro.org/ logo
#questions
Title
# questions
y

Yury Fedotov

03/25/2024, 10:58 AM
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

datajoely

03/25/2024, 11:05 AM
no - OmegaConf replaces it
thankyou 1
r

Richard Purvis

03/26/2024, 5:12 PM
Does OmegaConf have for-loop-like functionality? I searched the docs and haven't seen anything to that effect
y

Yury Fedotov

03/26/2024, 5:13 PM
@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

Richard Purvis

03/26/2024, 5:14 PM
Oh hey. Yes I agree, just curious if the functionality exists
d

datajoely

03/26/2024, 5:18 PM
intentionally it doesn’t
is what you’re looking for covered in this https://getindata.com/blog/kedro-dynamic-pipelines/
👍 1
r

Richard Purvis

03/26/2024, 5:20 PM
I think probably so for @Yury Fedotov. I would consider my question answered