<@U07UFLXTA4V> <Google Colab> for running python c...
# pacc-dec-17-18-2024
b
@Ramu Battula Google Colab for running python code in a notebook
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>'
a
Would this be the same in Snowflake Workbooks?
b
^ each one of these will go into a new code block
Honestly, I haven't tried it in Snowflake Workbooks yet 🤔
but it could work in theory!
🙌 1
Copy code
from prefect import flow

@flow(log_prints=True)
def google_colab():
   print("Hello from google colab!")

if __name__ == "__main__":
    google_colab()