About using python code from Global Shared Code
Shivraj
Registered Posts: 1 ✭
Hello, I have added a file named test_flow_global.py at Global Shared Code at path lib-python (main folder)--> python (sub-folder), the file contain def function that I want to just import and test in a notebook, how can I do that ? I am just a beginner in Python so looking for any help.
saved file name - test_global.py
fun def in the file is 'def get_model_flow_doc (#ids)'
Whenever I am trying to call the function using "from test_flow_utils import get_project_flow_doc" it gives error as "NameError: name 'get_project_flow_doc' is not defined". I have also added init.py file in the same folder where the code is placed.
Tagged:
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,112 Neuron
Where are you trying to call the function from? (ie what Dataiku component are you using)