How to import Python module

lchunleo Registered Posts: 10 ✭✭✭✭


i understand that i can import a github codes into my DSS project. i also understand that i can import python code from the project. My question is given the following structure, how can i import the codes from the tools (by importing the entire git) instead of git importing individual folder (src, tools) to call the python modules:

test project

- src codes (consist of main python codes)

- tools (helper tools written in python codes)


  • Liev
    Liev Dataiker Alumni Posts: 176 ✭✭✭✭✭✭✭✭

    Hi @lchunleo

    In your project libraries you can ask DSS to git pull from a repository. This can be done by either requesting the full repo or a subdirectory within it, up to you.

    It will be copied at the root level of the project libraries.

    Good luck!

  • lchunleo
    lchunleo Registered Posts: 10 ✭✭✭✭

    thank you Liev, actually i had no issue pulling the entire repo. just that i have python modules that are packaged in different folders where a) python module in one folder need to call python module in another folder or b) python module in the root module need to call python module in a folder. i have in all the folders. just wondering why it does not work when i pull the entire repo and try option (a) as mentioned above. if you know my issue, could you advise me? sorry am new to dataiku

  • Ignacio_Toledo
    Ignacio_Toledo Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 411 Neuron

    Hi @lchunleo
    . When you use this repo in your local python environment (outside DSS), how do you install it, or make it available to python?

Setup Info
      Help me…