https://kedro.org/ logo
#questions
Title
# questions
k

Kevin Mills

09/18/2023, 5:22 PM
Can someone point me in the direction to determine how we can load different pipelines in kedro viz? (e.g., demo.kedro.org?data=random, demo.kedro.org?data=spaceflights, etc)
👍 1
d

datajoely

09/18/2023, 5:23 PM
as in the URL flag?
k

Kevin Mills

09/18/2023, 5:26 PM
yeah. how does it load the individual pipelines? do we need to have a standalone viz instance and have references to the pipeline JSON in an accessible directory for viz to be able to read?
d

datajoely

09/18/2023, 5:26 PM
So I think this unfortunately just demo functionality
so you can use Viz as a react component if you want to do this yourself https://github.com/kedro-org/kedro-viz/issues/758
the other route is to run things normally and instrument
kedro viz --from-json
some where
k

Kevin Mills

09/18/2023, 5:28 PM
would it be worth putting in a feature request for this type of functionality? we have a project that we are working on that could have multiple kedro pipelines that are independent of one another, but would like to view them in viz without running kedro-viz multiple times.
👍🏽 1
ahhh ok cool. Let me take a look at 758.
d

datajoely

09/18/2023, 5:28 PM
so I think we’d appreciate raising an issue in anycase
tagging @Tynan if he has any other ideas
k

Kevin Mills

09/18/2023, 5:29 PM
and ill look at the other option to just to exhaust all options.
sure ill get it opened once I get back to my desk.
thanks Joel!
d

datajoely

09/18/2023, 5:29 PM
💪
t

Tynan

09/18/2023, 5:32 PM
i agree with @datajoely's suggestions. for context, we load those specific datasets here: https://github.com/kedro-org/kedro-viz/blob/main/src/utils/data-source.js#L40
they are only for demo and testing purposes
y

Yetunde

09/18/2023, 6:14 PM
@Kevin Mills Is it that you have separate Kedro projects set up and don't want to run
kedro viz
for each project? Or is it that all of these pipelines are in the same project and when you run
kedro viz
, you want to see the different pipelines?
k

Kevin Mills

09/29/2023, 1:23 PM
Sorry for the late response. We have multiple projects and we were hoping not to run
kedro viz
for each project.
🤯 1