Denis
12/12/2024, 6:46 PMBianca Hoch
12/12/2024, 9:01 PM!pip install prefect
Then set up your prefect profile (this is assuming you're using Prefect Cloud)
!prefect config set PREFECT_API_KEY='PASTE-YOUR-API-KEY-HERE'
!prefect config set PREFECT_API_URL='<https://api.prefect.cloud/api/accounts/YOUR-ACCOUNT-ID/workspaces/YOUR-WORKSPACE-ID>'
Then you should be able to run:
from prefect import flow
@flow(log_prints=True)
def google_colab():
print("Hello from google colab!")
if __name__ == "__main__":
google_colab()
Bianca Hoch
12/12/2024, 9:02 PM