Conrad F
03/24/2025, 9:51 AMprefect.context.get("my_variable")
to get a variable handed over via the UI.
What can I use in version 3 to do the same?Marvin
03/24/2025, 9:51 AMpython
from prefect import variables
value = variables.get("my_variable")
This method allows you to access variables that are set in the Prefect UI or through other interfaces like the CLI.
For more information, you can refer to the Prefect 3.x documentation on variables.