Hi Team, I've created a method called `get_spark` ...
# questions
a
Hi Team, I've created a method called
get_spark
inside the
ProjectContext
which I need to access in the
register_catalog
hook. How can I access that function?
d
Is this < 0.18.x? The modern way to do this is the
after_context_created
hook
m
What version of Kedro are you using? The registration hooks were removed for the
0.18.0
series
ahhh @datajoely faster as always 😂 🚀
d
🚤
a
I'm using
0.17.4
How to do it for this version of Kedro?
d
I think the catalog may already be registered by the time the context is instantiated. Can you not access it via self.catalog?
a
I'm in the
register_catalog
hook, so I think its just before being registered.
d
so you either have to create a session just for this or find a diff approach
or upgrade!