Discover the winners & finalists of the 2022 Dataiku Frontrunner Awards!READ THEIR USE CASES

Loading Python from Stash/Bitbucket?

info-rchitect
Level 5
Loading Python from Stash/Bitbucket?

How can I checkout the master branch of a stash repository that contains a custom Python library?


Operating system used: Windows 10

0 Kudos
1 Reply
AlexT
Dataiker

Hi @info-rchitect ,

You can import git libraries from git in the project libraries. Code - Libraries ( in the project) then select git and add the details of your git repo. If this is private repo you will need to add the SSH Key to the permit access to the repo.

See :  https://doc.dataiku.com/dss/latest/collaboration/git.html#configuration-and-security 

Screenshots of the actual steps:

Screenshot 2022-02-28 at 08.21.46.pngScreenshot 2022-02-28 at 08.21.53.pngScreenshot 2022-02-28 at 08.22.03.png

 

Another option is your git repo was created so it can be pip installed you can add to a code env 
git+https://...git  in the packages to install of your code env. This does mean you need to rebuild the code env to receive updates in the git repo.

https://towardsdatascience.com/create-your-custom-python-package-that-you-can-pip-install-from-your-...

Hope that helps!