Loading Python from Stash/Bitbucket?

Level 6
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

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.


Hope that helps!