This may be a silly question, but is there any way to 'export' the visualization of a flow run to somewhere else? Basically, once a flow runs/while the flow is running i want to give someone else a peek at the visualization. but I don't want them to see the logs so I can't send them to the prefect webserver
just wondering if anyone has done before or if i'll need to try it my own way 🙂
even just an easy way to export the final image one the flow has completed is a good start
n
Nate
09/24/2024, 6:17 PM
hi @Natalie Landsberg - I don't think this is a silly question 🙂 i would like the same thing, but I'm not sure there's currently a way to do this outside of screencap
@nicholas do you know if I'm missing something?
n
nicholas
09/24/2024, 6:22 PM
yup this is possible! if you right click/context click on the graph you can save it as an image like this:
is there an API to make that call in a script? or will i just have to use beautifulsoup or something to web scrape it
Natalie Landsberg
09/24/2024, 6:32 PM
either is fine
n
nicholas
09/24/2024, 6:36 PM
no API call, that's saving the actual rendered canvas
nicholas
09/24/2024, 6:37 PM
if you're looking for the data that makes up the visualization and not the visualization itself, it's constructed primarily from an API endpoint called
/api/flow-runs/{id}/graphs-v2
n
Natalie Landsberg
09/24/2024, 6:47 PM
thanks, that actually helps too!!
Natalie Landsberg
09/24/2024, 6:47 PM
appreciate it, i'll probably start with just grabbing the image once the flow returns a completed state 😄
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.