Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get_kedro_project_json_data import path #152

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,12 @@ def definition_from_flowchart(ls, word):
def get_project_data_from_viz(lsClient):
"""Get project data from kedro viz"""
from kedro_viz.server import load_and_populate_data
from kedro_viz.api.rest.responses import get_kedro_project_json_data
try:
# For kedro-viz > 10.0.0
from kedro_viz.api.rest.responses.pipelines import get_kedro_project_json_data
except ImportError as e:
# For kedro-viz = 10.0.0
ravi-kumar-pilla marked this conversation as resolved.
Show resolved Hide resolved
from kedro_viz.api.rest.responses import get_kedro_project_json_data

data = None
try:
Expand Down
2 changes: 1 addition & 1 deletion kedro-viz-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kedro-viz>=10.0.0
kedro-viz>=10.1.0