Hi Team,
Is there a way to not run certain kedro hooks when kedro viz loads? I have a spark hook defined which runs everytime I run kedro viz which I want to disable.
Thanks! π
This Hall app is crazy eager to find similar slack posts (but totally misses the point of my post)
ah maybe it's this, I think this would work:
DISABLE_HOOKS_FOR_PLUGINS = ("kedro-viz",)
I love this new feature because it also doesn't require you to have any dependencies installed
Wow, this would be super helpful! So I can technically run it from any environment, which is great!
Btw, which Kedro-version are you on because on version from Kedro-viz 9.0.0 , hooks are not called by default and you need to do kedro viz --include-hooks
to actually run kedro-viz with hooks
As Rashida mentioned from kedro viz 9.0.0 we ignore hooks by default unless you run kedro viz --include-hooks
. I would like to know if you are registering the SparkHook similar to the doc here ? If you are still bumping into the issue, would you be happy to open an issue here with required information to reproduce.
Ah I just realised, the spark session initialization is part of ProjectContext
in our case, so no way to disable it unless I refactor it to a hook
That's why I was perplexed as to why my spark session is being initialized even though I disabled all the hooks π