twinlab.Dataset.lock#

Dataset.lock(verbose=False)[source]#

Lock a dataset that was previously uploaded to the twinLab cloud.

Locking a dataset prevents it from being deleted or modified.

Parameters:

verbose (bool, optional) – Display confirmation.

Return type:

None

Example

dataset = tl.Dataset("quickstart")
dataset.lock()