Replies: 1 comment 6 replies
-
Its different depending on pluign and kedro version. It is possible for the author to design a plugin that simply works by pip installing it, but this might be dangerous for some plugins. Others need registered. Originally this was done by appending to the list of hooked in You will see this inside of class ProjectContext(KedroContext):
"""Users can override the remaining methods from the parent class here,
or create new ones (e.g. as required by plugins)
"""
project_name = "kedro-hooks"
# `project_version` is the version of kedro used to generate the project
project_version = "0.15.9"
package_name = "kedro-hooks"
hooks = [ debug_hook ] # 👈 This is where you implement the hook
def _get_pipelines(self) -> Dict[str, Pipeline]:
return create_pipelines() You will see something like this in your settings.py in newer versions. """Project settings."""
from spaceflights.hooks import ProjectHooks
# Instantiate and list your project hooks here
HOOKS = (ProjectHooks(),) In all cases you will need to import the hook and add it to a tuple or list. |
Beta Was this translation helpful? Give feedback.
-
I'm looking at this documentation https://kedro.readthedocs.io/en/latest/07_extend_kedro/04_plugins.html#example-of-a-simple-plugin
which talks about how to write own kedro plugin but it doesn't really say about how to "install" a plugin as a user.
Maybe i overlook something.
can help?
Beta Was this translation helpful? Give feedback.
All reactions