Request to Share/Update Dataset Viewer Code
MEMBER
Hi ! The huggingface/dataset-viewer code was not maintained anymore because we switched to a new dataset viewer that is deployed available for each dataset the Hugging Face website.

What are you using this old repository for ?
2023-07-11T16:07:41Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1631101792
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hOKNg
https://api.github.com/repos/huggingface/datasets/issues/comments/1631101792/reactions
2023-07-11T16:07:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1631101792
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
COLLABORATOR
I think these parts are outdated:

* https://github.com/huggingface/datasets-viewer/blob/8efad8eae313a891f713469983bf4c744786f26e/run.py#L126-L131
* https://github.com/huggingface/datasets-viewer/blob/8efad8eae313a891f713469983bf4c744786f26e/run.py#L145-L150

To make the viewer work, the first one should be replaced with the following:
```python
dataset_module = datasets.load.dataset_module_factory(path)
builder_cls = datasets.load.import_main_class(dataset_module.module_path)
confs = builder_cls.BUILDER_CONFIGS
```
And the second one:
```python
dataset_module = datasets.load.dataset_module_factory(path)
builder_cls = datasets.load.import_main_class(dataset_module.module_path)
if conf:
    builder_instance = builder_cls(name=conf, cache_dir=path if path_to_datasets is not None else None)
else:
    builder_instance = builder_cls(cache_dir=path if path_to_datasets is not None else None)
```

But as @lhoestq suggested, it's better to use the `datasets-server` API nowadays to [fetch the rows](https://huggingface.co/docs/datasets-server/rows).
2023-07-11T17:03:06Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1631178439
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hOc7H
https://api.github.com/repos/huggingface/datasets/issues/comments/1631178439/reactions
2023-07-11T17:03:39Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1631178439
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
> The dataset viewer on the Hugging Face website is incredibly useful

@mariosasko i think @lilyorlilypad wants to run the new dataset-viewer, not the old one
2023-07-11T17:08:33Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1631185809
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hOeuR
https://api.github.com/repos/huggingface/datasets/issues/comments/1631185809/reactions
2023-07-11T17:08:33Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1631185809
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
NONE
> wants to run the new dataset-viewer, not the old one

Thanks for the clarification for me. I do want to run the new dataset-viewer. 
2023-07-12T02:21:38Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1631751283
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hQoxz
https://api.github.com/repos/huggingface/datasets/issues/comments/1631751283/reactions
2023-07-12T02:21:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1631751283
https://avatars.githubusercontent.com/u/105081034?v=4
https://api.github.com/users/lilyorlilypad/events{/privacy}
https://api.github.com/users/lilyorlilypad/followers
https://api.github.com/users/lilyorlilypad/following{/other_user}
https://api.github.com/users/lilyorlilypad/gists{/gist_id}
https://github.com/lilyorlilypad
lilyorlilypad
U_kgDOBkNoyg
https://api.github.com/users/lilyorlilypad/orgs
https://api.github.com/users/lilyorlilypad/received_events
https://api.github.com/users/lilyorlilypad/repos
https://api.github.com/users/lilyorlilypad/starred{/owner}{/repo}
https://api.github.com/users/lilyorlilypad/subscriptions
User
https://api.github.com/users/lilyorlilypad
public
MEMBER
It should be possible to run it locally using the HF datasets-server API (docs [here](https://huggingface.co/docs/datasets-server)) but the front end part is not open source (yet ?)

The back-end is open source though if you're interested: https://github.com/huggingface/datasets-server
It automatically converts datasets on HF to Parquet, which is the format we use to power the viewer.
2023-07-12T10:02:46Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1632216581
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hSaYF
https://api.github.com/repos/huggingface/datasets/issues/comments/1632216581/reactions
2023-07-12T10:02:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1632216581
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
the new frontend would probably be hard to open source, as is, as it's quite intertwined with the Hub's code.

However, at some point it would be amazing to have a community-driven open source implementation of a frontend to datasets-server! 
2023-07-12T14:18:49Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1632617270
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5hT8M2
https://api.github.com/repos/huggingface/datasets/issues/comments/1632617270/reactions
2023-07-12T14:18:49Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1632617270
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
COLLABORATOR
For the frontend viewer, see https://github.com/huggingface/datasets/issues/6139.

Also mentioned in https://github.com/huggingface/datasets-server/issues/213 and https://github.com/huggingface/datasets-server/issues/441

Closing as a duplicate of https://github.com/huggingface/datasets/issues/6139
2023-09-25T12:01:17Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-1733528065
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps5nU4oB
https://api.github.com/repos/huggingface/datasets/issues/comments/1733528065/reactions
2023-09-25T12:01:17Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1733528065
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
NONE
Hi team,

I'm currently researching the Dataset Viewer project and would like to understand more about the frontend technologies used. Specifically, I'm interested in knowing:

Which frontend framework is being utilized (e.g., React, Vue, etc.)?
Are there any specific libraries or components being used for UI (e.g., Material-UI, Ant Design)?
Any other notable frontend tools or technologies that are part of this project?
Your assistance in providing these details would be greatly appreciated. Thank you for your time and effort!

Best regards
2024-07-19T06:22:56Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-2238375184
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps6FauUQ
https://api.github.com/repos/huggingface/datasets/issues/comments/2238375184/reactions
2024-07-19T06:22:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2238375184
https://avatars.githubusercontent.com/u/121411450?v=4
https://api.github.com/users/jacob-rodgers-max/events{/privacy}
https://api.github.com/users/jacob-rodgers-max/followers
https://api.github.com/users/jacob-rodgers-max/following{/other_user}
https://api.github.com/users/jacob-rodgers-max/gists{/gist_id}
https://github.com/jacob-rodgers-max
jacob-rodgers-max
U_kgDOBzyXeg
https://api.github.com/users/jacob-rodgers-max/orgs
https://api.github.com/users/jacob-rodgers-max/received_events
https://api.github.com/users/jacob-rodgers-max/repos
https://api.github.com/users/jacob-rodgers-max/starred{/owner}{/repo}
https://api.github.com/users/jacob-rodgers-max/subscriptions
User
https://api.github.com/users/jacob-rodgers-max
public
MEMBER
@jacob-rodgers-max we use https://svelte.dev/
2024-07-19T06:34:56Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-2238415571
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps6Fa4LT
https://api.github.com/repos/huggingface/datasets/issues/comments/2238415571/reactions
2024-07-19T06:34:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2238415571
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
NONE
> @jacob-rodgers-max we use https://svelte.dev/

Thank you very much for your prompt and detailed response!
2024-07-20T07:29:07Z
https://github.com/huggingface/datasets/issues/6014#issuecomment-2240990492
https://api.github.com/repos/huggingface/datasets/issues/6014
IC_kwDODunzps6Fks0c
https://api.github.com/repos/huggingface/datasets/issues/comments/2240990492/reactions
2024-07-20T07:29:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2240990492
https://avatars.githubusercontent.com/u/121411450?v=4
https://api.github.com/users/jacob-rodgers-max/events{/privacy}
https://api.github.com/users/jacob-rodgers-max/followers
https://api.github.com/users/jacob-rodgers-max/following{/other_user}
https://api.github.com/users/jacob-rodgers-max/gists{/gist_id}
https://github.com/jacob-rodgers-max
jacob-rodgers-max
U_kgDOBzyXeg
https://api.github.com/users/jacob-rodgers-max/orgs
https://api.github.com/users/jacob-rodgers-max/received_events
https://api.github.com/users/jacob-rodgers-max/repos
https://api.github.com/users/jacob-rodgers-max/starred{/owner}{/repo}
https://api.github.com/users/jacob-rodgers-max/subscriptions
User
https://api.github.com/users/jacob-rodgers-max
public

Overview:
The repository (huggingface/datasets-viewer) was recently archived and when I tried to run the code, there was the error message "AttributeError: module 'datasets.load' has no attribute 'prepare_module'". I could not resolve the issue myself due to lack of documentation of that attribute. 

Request:
I kindly request the sharing of the code responsible for the dataset preview functionality or help with resolving the error. The dataset viewer on the Hugging Face website is incredibly useful since it is compatible with different types of inputs. It allows users to find datasets that meet their needs more efficiently. If needed, I am willing to contribute to the project by testing, documenting, and providing feedback on the dataset viewer code. 

Thank you for considering this request, and I look forward to your response.