skillsnetwork.prepare#

async skillsnetwork.prepare(url, path=None, verbose=True, overwrite=False)[source]#

Prepares a dataset for learners. Downloads a dataset from the given url, decompresses it if necessary. If not using jupyterlite, will extract to /tmp and and symlink it so it’s available at the desired path.

>>> import skillsnetwork
>>> await skillsnetwork.prepare("https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBM-ML0187EN-SkillsNetwork/labs/module%203/images/images.tar.gz")
Saved to '.'
Parameters
  • url (str) – The URL to download the dataset from.

  • path (Optional[str]) – The path the dataset will be available at. Current working directory by default.

  • verbose=True – Prints saved path if True.

  • overwrite=False – If True, overwrites any existing files at destination.

Raises
Return type

None