Hi guys, i was new to prefect, i ran a very basic ...
# prefect-ui
g
Hi guys, i was new to prefect, i ran a very basic code flow, and then i want to see it in UI, but i am getting error like this, "ValueError: Project my_first_flow not found. Run
client.create_project("my_first_flow")
to create it." And here is my basic code
from prefect import task, Flow
@task def hello_world(): return "hello prefect" @task def prefect_say(s:str): print(s) with Flow("my_first_flow") as f: r = hello_world() s = prefect_say(r) # f.run() f.visualize() f.register("my_first_flow")
j
Hello @gunarevuri and welcome to Prefect. We use projects in the UI to organize flows and as the error message says, you'll need to add a project to register your flow to. You can see how to create a project here: https://docs.prefect.io/orchestration/concepts/projects.html#graphql
You'll also need to add a project name when you register your flow. The docs here should help: https://docs.prefect.io/orchestration/tutorial/first.html#write-flow