kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
672 stars 110 forks source link

kedro-viz hook error when running Jupyter kedro magic #1816

Closed kennyb-qb closed 5 months ago

kennyb-qb commented 6 months ago

Description

using kedro line magic produces error "Plugin already registered under a different name" work around is to use settings.py DISABLE_HOOKS_FOR_PLUGINS or uninstall kedro-viz

Context

unable to load kedro ipython magic by default without extra settings or uninstalling kedro-viz

Steps to Reproduce

  1. linux docker environment, python 3.9, pip install dependencies
  2. create new notebook and run kedro magic as per doc: https://docs.kedro.org/en/stable/notebooks_and_ipython/kedro_and_notebooks.html#loading-the-project-with-the-kedro-ipython-extension

Expected Result

Kedro magic loads the project and global variables

Actual Result

Plugin already registered under a different name image

Your Environment

Include as many relevant details as possible about the environment you experienced the bug in:

Checklist

ravi-kumar-pilla commented 5 months ago

Hi @kennyb-qb ,

The hook name was changed in Kedro-Viz v6.6.1 here. I see your kedro-viz version as v6.5.0 from pip freeze.

I am not sure how this is affecting the kedro magic line in your notebook (somehow the notebook instance has a kedro-viz version >=6.6.1) . Could you please upgrade the kedro-viz version to >=6.6.1 in your local and try this out ?

Thank you

ravi-kumar-pilla commented 5 months ago

I spoke to @kennyb-qb and it seems his teammate had some issues with the local environment. This is not an issue anymore and he suggested to close it for now. Thank you