# Dataset preview not showing for uploaded DatasetDict

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%3E%5C
**Category:** 🤗Datasets\
**Created:** [December 7, 2021, 4:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603 "2021-12-07T04:13:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dansbecker](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dansbecker/32/25019_2.png) [@dansbecker](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdansbecker)%5C
**Post date:** [December 7, 2021, 4:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F1 "2021-12-07T04:13:49Z")

</div>

I created a DatasetDict and pushed it [here](https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts).

I’m getting the message

```auto
Server Error
Status code: 400
Exception: Status400Error
Message: could not get the config name for this dataset

```

Am I supposed to create a config file somewhere that I missed so the dataset viewer works?

Thanks!

---

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flewtun)%5C
**Post date:** [December 7, 2021, 8:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F2 "2021-12-07T08:27:23Z")

</div>

Hey @dansbecker as far as I know, the dataset viewer currently supports datasets with a loading script ([example](https://huggingface.co/datasets/GEM/squad_v2/blob/main/squad_v2.py)) or raw data files in common formats like JSON and CSV ([example](https://huggingface.co/datasets/transformersbook/codeparrot-valid)).

I agree that being able view the contents of `DatasetDict` objects would be a nice feature, so I’m tagging @lhoestq and @severo in case they have any additional insights here 🙂

---

<div class="post-metadata">

**Author:** ![severo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/severo/32/27449_2.png) [@severo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsevero)%5C
**Post date:** [December 7, 2021, 8:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F3 "2021-12-07T08:41:23Z")

</div>

I created an issue at [Dataset viewer issue for `dansbecker/hackernews_hiring_posts` · Issue #3392 · huggingface/datasets · GitHub](https://github.com/huggingface/datasets/issues/3392)

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/64813_2.png) [@lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [December 7, 2021, 11:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F4 "2021-12-07T11:45:04Z")

</div>

Hi ! Please use `my_dataset.push_to_hub()` to save your dataset on the Hub. Then to reload you can use `load_dataset()`. You can see the documentation [here](https://huggingface.co/docs/datasets/upload_dataset.html#upload-from-python)

Datasets saved with `save_to_disk` and uploaded manually to the Hub are not supported (yet). This is because saving locally uses the Arrow format: while this format allows a dataset to be immediately reloaded, it’s not the preferred format to store in the cloud since it’s uncompressed (it requires more bandwidth)

---

<div class="post-metadata">

**Author:** ![dansbecker](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dansbecker/32/25019_2.png) [@dansbecker](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdansbecker)%5C
**Post date:** [December 7, 2021, 1:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F5 "2021-12-07T13:10:20Z")

</div>

Do you all have a preference for continuing the conversation here vs in the issue?

I’d like to make sure I understand the advice above:

I tried the steps @lhoestq suggested

```auto
repo_url = 'https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts'
repo = Repository(local_dir=".", clone_from=repo_url)
all_datasets.push_to_hub(repo)

```

That gives an error `AttributeError: 'Repository' object has no attribute 'split'`

I assume the split attribute is specified in the loading script that @lewtun mentioned? I see a `_split_generators` method in that example loading script. Does that create the `split` attribute in some way I’m missing?

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [December 7, 2021, 1:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F6 "2021-12-07T13:27:47Z")

</div>

Hi,

the `repo` argument should be of type `str`, so try this instead: `all_datasets.push_to_hub("hackernews_hiring_posts")`

---

<div class="post-metadata">

**Author:** ![dansbecker](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dansbecker/32/25019_2.png) [@dansbecker](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdansbecker)%5C
**Post date:** [December 7, 2021, 1:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-preview-not-showing-for-uploaded-datasetdict%2F12603%2F7 "2021-12-07T13:47:58Z")

</div>

Thanks @mariosasko. That works great.
