Is it possible to enable a Kedro plugin only in specific envs? e.g.,
Following does not add plugin
kedro run
kedro run -e mlfow
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.