Configuring Code env at project via Dataikuapi

Thiagarajan
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

Best Answer

  • Thiagarajan
    Thiagarajan Registered Posts: 18 ✭✭
    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

Setup Info
    Tags
      Help me…