Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

Is there a way to tell if a project is containerized execution from Python?

info-rchitect
Level 6
Is there a way to tell if a project is containerized execution from Python?

Hi,

 

I need to be able to change how my Python code behaves, if the project uses containerized execution.  Is there an API for this?

 

thx


Operating system used: Windows 10

0 Kudos
1 Reply
JordanB
Dataiker

Hi @info-rchitect,

Projects themselves are not containerized - components such as code recipes, notebooks, and visual ML within projects can be containerized. You can get a code env definition using DSS Python APIs which will tell you if it is containerized and you can use list_usages() to see where the code env is used. You can also customize the script in the developer guide to map all code recipes to their code envs: https://developer.dataiku.com/latest/concepts-and-examples/code-envs.html#detailed-examples

I hope this answers your question! Please let me know if you have any questions.

Thanks,

Jordan

 

0 Kudos