kedro-org / kedro-viz

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

Export without run #1857

Open astrojuanlu opened 2 months ago

astrojuanlu commented 2 months ago

Description

Currently there's a --save-file option in kedro viz run that exports something (what exactly is unclear: https://github.com/kedro-org/kedro-viz/issues/1681)

Still, it's very weird that there's no option to just export the thing without actually running the web server.

Context

Potentially useful for users of the React component https://github.com/kedro-org/kedro-viz/issues/1745.

Possible Implementation

Have a fully documented kedro viz export command that does the same as kedro viz run --save-file=... without actually running the webserver, exiting immediately.

❯ kedro viz export ./spaceflights-viz
Exported to spaceflights-viz
❯ tree spaceflights-viz
...

Possible Alternatives

?

Checklist

astrojuanlu commented 2 months ago

Notice that this is not the same as kedro viz build, which creates the whole HTML