Identifying the Node Type in a DSS Notebook using Python
lau_sch
Registered Posts: 7 ✭✭✭
In Python, in a DSS notebook, I want to know if the code is running in the design node or the automation node. How can I do that?
Tagged:
Best Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,088 Neuron
You can use this:
import dataiku client = dataiku.api_client() client.get_instance_info().node_type
Will return either
DESIGN
or
AUTOMATION
You could also do this with an instance level global variable the administrator can set.
-
Thank you it works !