Kedro: Save kedro pipeline image by pillow.ImageDataSet without manually launching kedro-viz server

Created on 19 May 2020  路  5Comments  路  Source: quantumblacklabs/kedro

Description

Currently we have to launch the kedro-viz server to see the visualized pipeline.
It will be more convenient if we can save the pipeline image by simply setting in catalog.yml like this:

_PIPELINE_IMAGE:
  type: pillow.ImageDataSet
  filepath: data/_pipeline_image.png

Context

This issue is related to #56 (moved to https://github.com/quantumblacklabs/kedro-viz/issues/31), but perhaps a more convenient feature.

Possible Implementation

Provide some of the visualization code in kedro-viz as a Kedro hook.

Possible Alternatives

Port some of the visualization code in kedro-viz to KedroContext.

Feature Request

Most helpful comment

@WaylonWalker Awesome! I'll try it. Thanks!

All 5 comments

Hi @Minyus ! I'm a little apprehensive about using some magic in the catalog to get the pipeline visualisation. I wonder if there's a way to leverage @WaylonWalker 's kedro-static-viz plugin here?

Hi @WaylonWalker , what do you think about using kedro-static-viz in a Kedro hook?

@Minyus You nearly read my mind, kedro-static-viz == 0.3.0 is out now with this functionality.

It does not create an image as the Issue is requesting, but it creates a static site will the same look, feel, and interactivity of kedro-viz, without the need to keep the flask server running if you have a place to host static content.

@lorenabalan Thanks for the plug here 馃槈. I saw the issue and didn't even think about kedro-static-viz as a solution.

@WaylonWalker Awesome! I'll try it. Thanks!

Closing this as resolved, loving the collaboration here. 馃槉

Was this page helpful?
0 / 5 - 0 ratings