You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run SQL queries on the dataset in the browser using the SQL Console. The SQL Console is powered by [DuckDB](https://duckdb.org/) WASM and runs entirely in the browser. You can access the SQL Console from the dataset page by clicking on the **SQL Console** badge.
To learn more about the SQL Console, see the <a href="https://huggingface.co/blog/sql-console" target="_blank" rel="noopener noreferrer">SQL Console blog post</a>.
12
+
</p>
13
+
14
+
15
+
Through the SQL Console, you can:
16
+
17
+
- Run [DuckDB SQL queries](https://duckdb.org/docs/sql/query_syntax/select) on the dataset (_checkout [SQL Snippets](https://huggingface.co/spaces/cfahlgren1/sql-snippets) for useful queries_)
18
+
- Share results of the query with others via a link (_check out [this example](https://huggingface.co/datasets/gretelai/synthetic-gsm8k-reflection-405b?sql_console=true&sql=FROM+histogram%28%0A++train%2C%0A++topic%2C%0A++bin_count+%3A%3D+10%0A%29)_)
19
+
- Download the results of the query to a parquet file
20
+
- Embed the results of the query in your own webpage using an iframe
21
+
22
+
<Tip>
23
+
You can also use the DuckDB CLI to query the dataset via the `hf://` protocol. See the <ahref="https://huggingface.co/docs/hub/en/datasets-duckdb"target="_blank"rel="noopener noreferrer">DuckDB CLI documentation</a> for more information.
Copy file name to clipboardExpand all lines: docs/hub/datasets-viewer.md
+3-23Lines changed: 3 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,30 +20,10 @@ Similarly, if you select one class from a categorical column, it will show only
20
20
21
21
You can search for a word in the dataset by typing it in the search bar at the top of the table. The search is case-insensitive and will match any row containing the word. The text is searched in the columns of `string`, even if the values are nested in a dictionary or a list.
22
22
23
-
## Using the SQL Console to query the dataset
23
+
## Run SQL queries on the dataset
24
24
25
-
You can run SQL queries on the dataset in the browser using the SQL Console. The SQL Console is powered by [DuckDB](https://duckdb.org/) WASM and runs entirely in the browser. You can access the SQL Console from the dataset page by clicking on the **SQL Console** badge.
To learn more about the SQL Console, see the <a href="https://huggingface.co/blog/sql-console" target="_blank" rel="noopener noreferrer">SQL Console blog post</a>.
34
-
</p>
35
-
36
-
37
-
Through the SQL Console, you can:
38
-
39
-
- Run [DuckDB SQL queries](https://duckdb.org/docs/sql/query_syntax/select) on the dataset (_checkout [SQL Snippets](https://huggingface.co/spaces/cfahlgren1/sql-snippets) for useful queries_)
40
-
- Share results of the query with others via a link (_check out [this example](https://huggingface.co/datasets/gretelai/synthetic-gsm8k-reflection-405b?sql_console=true&sql=FROM+histogram%28%0A++train%2C%0A++topic%2C%0A++bin_count+%3A%3D+10%0A%29)_)
41
-
- Download the results of the query to a parquet file
42
-
- Embed the results of the query in your own webpage using an iframe
43
-
44
-
<Tip>
45
-
You can also use the DuckDB CLI to query the dataset via the `hf://` protocol. See the <ahref="https://huggingface.co/docs/hub/en/datasets-duckdb"target="_blank"rel="noopener noreferrer">DuckDB CLI documentation</a> for more information.
46
-
</Tip>
25
+
You can run SQL queries on the dataset in the browser using the SQL Console.
26
+
For more information see our guide on [SQL Console: Query the dataset in the browser](./datasets-viewer-sql-console).
0 commit comments