itay livni

10/22/2019, 3:46 AM
Hi there again - I remember reading somewhere in the docs about "hiding" inputs for visualizations. Can't seem to find it. Can you point me to the docs or show an example? Thanks again. Keep up the good work.

Chris White

10/22/2019, 4:46 AM
Hi itay -
will always display all tasks within your flow. You might be referring to Prefect’s auto-generated tasks (e.g., if you provide a standard python dictionary as an input to a task, prefect will create tasks for every key, value, etc.) There is some information here: on how to avoid this auto-generation

itay livni

10/22/2019, 5:38 AM
thank you

Brett Naul

10/23/2019, 3:15 PM
@itay livni fyi I wanted to do the same recently and ended up manually dropping all the tasks/edges I didn’t want to see before plotting, seems to work ok:
to_viz = flow.copy()
to_skip = {'Constant', '/', 'Add', 'Div', '1.0', 'GetItem', '0'}
to_viz.edges = {edge for edge in to_viz.edges if not any(s in for task in edge.tasks for s in to_skip)}
to_viz.tasks = {task for task in to_viz.tasks if not any(s in for s in to_skip)}

itay livni

10/23/2019, 4:09 PM
@Brett Naul That is really neat! I can see generating two visualizations. One being an outline\summary of the
. And the other being a detailed view. Self documenting code 🙂