Skip to main content

Updating to the newest version of the SDK

There are two ways of updating to the newest version of the treble SDK. One way is to use https://manage.treble.tech/ and download the latests .whl package. The more efficient approach uses a few lines of code to download and update the SDK to the latest version.

First, initialise the SDK and specify the base directory. This is similar to the initialisation step used in the example notebooks.

from treble_tsdk import treble
tsdk = treble.TSDK()

from pathlib import Path
base_dir = Path.home()/"SDK_versions"
print(base_dir)

Using the SDK's built-in command, fetch the latest .whl package.

tsdk.download_update(base_dir)

Within the python environment you previously installed the SDK in, use pip install to install the updated .whl.

%pip install /home/USER/SDK_versions/treble_tsdk-<VERSION>-py3-none-any.whl