Error in dataiku API
Best Answer
-
The solution I've used meanwhile a fix is out :
import dataiku
project = dataiku.api_client(dataiku.get_custom_variables()['projectKey'])
recipe = project.get_recipe('pyspark_recipe_create') # get our recipe
settings = recipe.get_settings()
settings.recipe_settings['params']['envSelection'] = {"envName": "code_env_name", "envMode": "EXPLICIT_ENV"}
settings.get_code_env_settings() # just to check if it is correctly set
settings.save() # save the edit settings = recipe.get_settings()Steven