Join the Kedro community

Updated 4 weeks ago

Enabling a plugin is possible

Is it possible to enable a Kedro plugin only in specific envs? e.g.,

Following does not add plugin

kedro run 

While, the next one does

kedro run -e mlfow

N
3 comments

Free to open an Github issue about it, I think it would be an interesting dev ex improvement.

For now, I don't think there is a way to do this universally, it's up to the plugin to implement such feature. So it would be plugin specific.

In settings.py, you can disable environment via:

# DISABLE_HOOKS_FOR_PLUGINS = ("kedro-viz",)
but this is environment agnostic. This is read before Kedro reading any configuration so "environment" isn't available and will requires some workaround for now.

Add a reply
Sign up and join the conversation on Slack