https://prefect.io logo
Title
s

Sherman

07/09/2019, 4:36 PM
Hello, I am running through the Docker Prefect example (https://docs.prefect.io/guide/examples/imperative_docker.html) and it says that it is using the Imperative API to build out the example. Is there a reason why the Functional API couldn't be used for this purpose?
c

Chris White

07/09/2019, 4:37 PM
nope, no reason at all; we just used the imperative API for a more diverse set of examples
s

Sherman

07/09/2019, 6:13 PM
thanks!
👍 1
Something that would be helpful would be to see a similar task written with both APIs. Being new to Prefect, it would help me understand the differences.
👍 1
c

Chris White

07/09/2019, 9:44 PM
Yea that makes sense! I’ve opened an issue to rewrite the Docker example using the functional API (as a new example, so you can compare): https://github.com/PrefectHQ/prefect/issues/1217
👍 1
Hi @Sherman -> our functional API docker example is now live! https://docs.prefect.io/guide/examples/functional_docker.html
s

Sherman

07/11/2019, 4:27 PM
Amazing. Thank you!