https://prefect.io logo
Title
t

Thomas E

12/08/2022, 4:25 PM
@ask-marvin how should I use decorators when using Prefect?
a

ask-marvin

12/08/2022, 4:25 PM
Let me check that for you @Thomas E
The easiest way is to just use the
with
statement.
with flow() as f:             print(f())
t

Thomas E

12/08/2022, 4:26 PM
ok @ask-marvin say more about that
a

ask-marvin

12/08/2022, 4:26 PM
Let me check that for you @Thomas E
Hi! I am a Prefect assistant. How can I help you today?
t

Thomas E

12/08/2022, 4:26 PM
ok ok I'm learning too Marv
@ask-marvin can you give me an example of using prefect blocks?
a

ask-marvin

12/08/2022, 4:28 PM
Let me check that for you @Thomas E
j

Jeremiah

12/08/2022, 4:35 PM
@Thomas E this isn’t chatgpt… yet
t

Thomas E

12/08/2022, 4:43 PM
YET
j

Jeremiah

12/08/2022, 5:12 PM
silly marvin, that’s a Prefect 1 idiom
Definitely in the running for swag