Configuring Code env at project via Dataikuapi

Thiagarajan
Registered Posts: 18 ✭✭
Hi,
I'm trying to configure code env programmatically via dataikuapi using the below mentioned commands and I have trouble setting it up.
project_settings = Eng_project.get_settings() project_settings.set_code_env(code_env_name) project_settings.save()
I'm getting this issue.
AttributeError: 'DSSProjectSettings' object has no attribute 'set_code_env'
Do y'all have any ideas in fixing it? I'm using dataiku-api-client v13.1.4 python library.
Operating system used: Windows
Tagged:
Best Answer
-
I figured that we access project variables the below mentioned way in v13. hence closing this thread.
project_settings = Eng_project.get_settings() project_settings.settings['settings']['codeEnvs']['python']
Answers
-
@Turribeach : Do you have any idea about this or any pointers you would recommend?
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,467 Neuron
Just seen this. Nice one. Piece of advice, don't trust chatGPT to write proper Dataiku API code, too many allucinations. Use the developer site to check on the available API methods: