Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
since the part producing the warning is a Python script (or step), you can in this Python script save a value in the scenario variables, and use that variable in the condition for the reporter. Indeed, the "outcome" variable used in the condition for reporters is only an example. All variables available to the scenario can be accessed there.
With:
from dataiku.scenario import Scenario
Scenario().set_scenario_variables(foo='bar')
You can use a condition:
foo == 'bar'
Regards,
Frederic
Hi,
since the part producing the warning is a Python script (or step), you can in this Python script save a value in the scenario variables, and use that variable in the condition for the reporter. Indeed, the "outcome" variable used in the condition for reporters is only an example. All variables available to the scenario can be accessed there.
With:
from dataiku.scenario import Scenario
Scenario().set_scenario_variables(foo='bar')
You can use a condition:
foo == 'bar'
Regards,
Frederic
Hi Frederic,
I have been looking for a solution for this problem and wasted a lot of time, I looked everywhere in the Dataiku documentation version 6.0 for this snippet of code but couldn't find it anywhere.
It'd be really helpful if you could you share where you got it from because apparently i haven't been looking in the right place.
Thanks.
Hi Ashenn1,
Does this link help?
https://doc.dataiku.com/dss/6.0/python-api/scenarios.html?highlight=api%20scenario
Thanks,
Niko