Skip to content

How to use the latest GitHub code

Mackenzie Mathis edited this page May 25, 2021 · 4 revisions

How to use the latest updates directly from GitHub

We often update the master deeplabcut code base on github, and then ~1 a month we push out a stable release on pypi. This is what most users turn to on a daily basis (i.e. pypi is where you get your pip install deeplabcut code from!

But, sometimes we add things to the repo that are not yet integrated, or you might want to edit the code yourself. Here, we show you how to do this.

Step 1:

  • git clone the repo into a folder on your computer:

  • click on this green button and copy the link:

  • then in the terminal type: git clone https://github.com/DeepLabCut/DeepLabCut.git

Step 2:

  • Now you will work from the terminal inside this cloned folder:

  • Now, when you start ipython or pythonw (mac users), and import deeplabcut you are importing the folder "deeplabcut" - so any changes you make, or any changes we made before adding it to the pip package, are here.

  • You can also check which deeplabcut you are importing by running: deeplabcut.__file__

If you make changes to the code/first use the code, be sure you run ./resinstall.sh, which you find in the main DeepLabCut folder:

Then, you can see what version you have with deeplabcut.__version__

Clone this wiki locally