About using python code from Global Shared Code

Shivraj
Shivraj Registered Posts: 1
edited November 30 in Using Dataiku

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

Setup Info
    Tags
      Help me…