Hi all, could anyone point me to the best resource...
# hamilton-help
y
Hi all, could anyone point me to the best resource for learning more about
@subdag
? Thank you!
s
• Reference docs: https://hamilton.dagworks.io/en/latest/reference/decorators/subdag/ • One Example • Another example (scroll down a little)

watch the video explaining about me explaining reuse, with subdag being one option▾

.
y
Great! I’ll check out these
s

https://youtu.be/IJByeN41xHs?feature=shared&t=2368▾

is when I start talking about options & the notebook.
👍 1
y
Follow up question on this example. Does the subdag have to be imported from another module? Is it possible to keep all my hamilton functions in a single python file, and make some of a subdag?
s
yes, you can pass in functions instead of modules to the subdag, so the subdag can be defined in the same module.
👍 1