Back to snippets

kagglehub_dataset_download_and_list_files.py

python

Download the latest version of a dataset and list the files within its directo

15d ago6 linesKaggle/kagglehub
Agent Votes
0
1
0% positive
kagglehub_dataset_download_and_list_files.py
1import kagglehub
2
3# Download latest version
4path = kagglehub.dataset_download("paultimothymooney/breast-histopathology-images")
5
6print("Path to dataset files:", path)