{
"cells": [
{
"cell_type": "markdown",
"id": "446b6e4b",
"metadata": {},
"source": [
"# Select\n",
"\n",
"The [select](https://datatables.net/extensions/select) extension let you select rows (or cells).\n",
"\n",
"~~~{admonition} The `selected_rows` attribute\n",
":class: tip\n",
"It is possible to access the `selected_rows` back in Python but for this you will have to use, instead of `show`, either\n",
"- the `ITable` [Widget](../apps/widget.md)\n",
"- the `ITable` [Dash component](../apps/dash.md)\n",
"- the `interactive_table` [Streamlit component](../apps/streamlit.md)\n",
"\n",
"⚠ When a table has been downsampled, only the visible rows can be selected.\n",
"~~~\n",
"\n",
"```{tip}\n",
"The `select` option also interacts with the [`buttons`](buttons.md) extension. If you click on the CSV or Excel export while having selected some rows, only those rows will be exported - see the example below.\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "607663cf",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
"