Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on September 26, 2018 7:33PM
Likes: 1
Replies: 3
In scenarios there is a possibility to create custom variables via python code in the "Reporters" section.
How can I access global variable in the python?
Import of dataiku is not possible
<type 'exceptions.ImportError'> : No module named dataiku
import json
import dataiku
# compute your additional variables from the list of report items
# and return them as a dictionary.
def get_variables(items_json, scenario_run_json, step_run_output_json):
items = json.loads(items_json)
client = dataiku.api_client()
client.get_variables()....
Is there also a way to retrieve the variables defined with one of the "steps" under a Scenario?
+1 to the previous question: I failed to do this (and posted a question on this topic)