# Dataset Viewer for dataset with downloadable data

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041%3E%5C
**Category:** 🤗Datasets\
**Created:** [March 4, 2025, 4:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041 "2025-03-04T16:27:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timbmg](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/timbmg/32/42495_2.png) [@timbmg](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftimbmg)%5C
**Post date:** [March 4, 2025, 4:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041%2F1 "2025-03-04T16:27:08Z")

</div>

Hi 🤗

I am not hosting my files on huggingface, but I am downloading a .zip file from my university dataset hub. Further, the files are processed in the `_generate_examples` functions of the `GeneratorBasedBuilder`. How can I make this compatible with the dataset viewer? It’s about: [UKPLab/PeerQA · Datasets at Hugging Face](https://huggingface.co/datasets/UKPLab/PeerQA) .

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [March 5, 2025, 2:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041%2F2 "2025-03-05T14:36:03Z")

</div>

Hi ! unfortunately the viewer doesn’t support datasets based on python scripts (for obvious security reasons)

Feel free to host the dataset as Parquet files using `ds.push_to_hub()` instead, this way you’ll get a viewer

---

<div class="post-metadata">

**Author:** ![timbmg](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/timbmg/32/42495_2.png) [@timbmg](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftimbmg)%5C
**Post date:** [March 6, 2025, 8:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041%2F3 "2025-03-06T08:58:24Z")

</div>

Thanks for clarifying, @lhosteq! I see, it makes sense that the code cannot be executed. The code is required because it needs to download some and process some data that can’t be hosted on the hub due to licenses.  
I have now added the permissible part using ds.push\_to\_hub(). I can see the parquet files have been uploaded, but the viewer is still showing that it cant be shown due to the remote code. Does it mean that the viewer only works if there is no loading script present?

---

<div class="post-metadata">

**Author:** ![timbmg](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/timbmg/32/42495_2.png) [@timbmg](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftimbmg)%5C
**Post date:** [March 6, 2025, 12:30pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-viewer-for-dataset-with-downloadable-data%2F144041%2F4 "2025-03-06T12:30:11Z")

</div>

It seems having both parquet files and a loading script is not supported, meaning it will not enable the dataset viewer ([Enabling dataset viewer by coexistence of loading script and parquet files - #5 by lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenabling-dataset-viewer-by-coexistence-of-loading-script-and-parquet-files%2F77776%2F5)). So i removed the parquet files again.
