Skip to content

Commit

Permalink
Adds comment on how to display graph
Browse files Browse the repository at this point in the history
So that if someone uses the hub instructions
they can easily visualize what they're doing.
  • Loading branch information
skrawcz committed Nov 24, 2023
1 parent 1852615 commit 804d3d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/docs/templates/driver_builder.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dr = (
.with_modules({{MODULE_NAME}})
.build()
)
# If you have sf-hamilton[visualization] installed, you can see the dataflow graph
# In a notebook this will show an image, else pass in arguments to save to a file
# dr.display_all_functions()
# Execute the dataflow, specifying what you want back. Will return a dictionary.
result = dr.execute(
[{{MODULE_NAME}}.CHANGE_ME, ...], # this specifies what you want back
Expand Down

0 comments on commit 804d3d2

Please sign in to comment.