Replies: 2 comments 15 replies
-
Unfortunately you can't mix Kedro Templated globals and Jinja scoped variables out of the box. An open source user on our discord documented how to do this here: |
Beta Was this translation helpful? Give feedback.
8 replies
-
How does this work in v0.18.0? My understanding is that the register_config_loader hook has gone away. Does TemplatedConfigLoader support this out of the box? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a Kedro newb and need some help getting TemplatedConfigLoader with a catalog.yml that contains a ninja snippet to work. The relevant parts (mostly lifted from the docs):
hooks.py:
conf/base/globals.yml
part of catalog.yml
I don't see any errors (but my pipeline does not acces the new tables yet). In some debugging sessions I see globals.yml being accessed.
However when using Kedro ipython to use the catalog.list(), the newly created data tables are not there. As if the loop is skipped.
Sure enough, when I change the first jinja line to:
I see two tables 'ZZ', and 'XX' appear in the catalog. So it seems my_tables is empty.
Conclusion: maybe my understanding of globals_pattern and globals_dict is wrong. I thought they were used to populate a dict that was passed to the jinja template to use as global variables.
Please elucidate me. TIA
Beta Was this translation helpful? Give feedback.
All reactions