kedro-viz icon indicating copy to clipboard operation
kedro-viz copied to clipboard

Export without run

Open astrojuanlu opened this issue 10 months ago • 1 comments

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

  • [x] Include labels so that we can categorise your feature request

astrojuanlu avatar Apr 11 '24 10:04 astrojuanlu

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

astrojuanlu avatar Apr 11 '24 10:04 astrojuanlu