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
- Raises
InvalidURLException – When URL is invalid.
FileExistsError – When a file to be symlinked already exists and overwrite is False.
ValueError – When requested path is in /tmp, or cannot be saved to path.
- Return type