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

Visualise a pipeline based on the YAML definition #294

Open
drazendee opened this issue Oct 12, 2023 · 5 comments
Open

Visualise a pipeline based on the YAML definition #294

drazendee opened this issue Oct 12, 2023 · 5 comments

Comments

@drazendee
Copy link
Contributor

It would be useful to be able to generate a graph of the pipeline based on the YAML definition. It would be easier to understand if my edges are setup correctly if I could see the order that Valohai thinks it would execute the node in.

@skogstrom
Copy link

Is the issue that we are not visualizing each edge separately?

@drazendee
Copy link
Contributor Author

You'd want a cli tool to draw a graph. Right now the only way to see it is to adhoc run or go through git and UI (but for dev stage this is a bit tedious)

@ruksi
Copy link
Member

ruksi commented Oct 13, 2023

so the goal is for the CLI to render the pipeline graph

some ideas:

  1. simple but the furthest from the actual: create the graph using one of ASCII terminal rendering libraries, should work for a quick visualization to debug; there are many small libraries but I haven't encountered any that would be above the rest 😛
  2. battle-tested but a bit old-school: use Graphviz + Python bindings to render the graph locally to an image to pop open
  3. most similar to what it will look like, but a bit more complex: use Cytoscape to render it like our app does but just show it in a local browser or as a rendered image, would probably benefit from extracting the rendering code to a separate library so it can be used in both projects. This approach would also enable interactivity if that is something that is desired, but also requires the most from the computer running the CLI 🤔

@akx
Copy link
Member

akx commented Oct 13, 2023

We could also add a view in the app that allows visualizing an arbitrary pipeline graph passed in as base64'd JSON query parameter (and have the CLI open that); that way the rendering would look familiar.

@ruksi
Copy link
Member

ruksi commented Oct 13, 2023

We could also add a view in the app that allows visualizing an arbitrary pipeline graph passed in as base64'd JSON query parameter (and have the CLI open that); that way the rendering would look familiar.

🤩 that would something "best of both worlds" as connecting to Valohai App is probably fine (as CLI surely needs to do that anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants