SELECT\n", - "`state` AS `state`,\n", - "`gender` AS `gender`,\n", - "`year` AS `year`,\n", - "`name` AS `name`,\n", - "`number` AS `number`\n", - "FROM\n", - "(SELECT\n", - " `t0`.`state`,\n", - " `t0`.`gender`,\n", - " `t0`.`year`,\n", - " `t0`.`name`,\n", - " `t0`.`number`,\n", - " `t0`.`bfuid_col_2` AS `bfuid_col_15`\n", - "FROM `bigframes-dev._8b037bfb7316dddf9d92b12dcf93e008906bfe52._c58be946_1477_4c00_b699_0ae022f13563_bqdf_8e323719-899f-4da2-89cd-2dbb53ab1dfc` AS `t0`)\n", - "ORDER BY `bfuid_col_15` ASC NULLS LAST
10 rows × 5 columns
\n", - "[5552452 rows x 5 columns in total]" + "[None rows x 5 columns in total]" ], "text/plain": [ "state gender year name number\n", - " AL F 1910 Hazel 51\n", - " AL F 1910 Lucy 76\n", - " AR F 1910 Nellie 39\n", - " AR F 1910 Lena 40\n", - " CO F 1910 Thelma 36\n", - " CO F 1910 Ruth 68\n", - " CT F 1910 Elizabeth 86\n", - " DC F 1910 Mary 80\n", - " FL F 1910 Annie 101\n", - " FL F 1910 Alma 39\n", - "...\n", + " AL F 1910 Cora 61\n", + " AL F 1910 Anna 74\n", + " AR F 1910 Willie 132\n", + " CO F 1910 Anna 42\n", + " FL F 1910 Louise 70\n", + " GA F 1910 Catherine 57\n", + " IL F 1910 Jessie 43\n", + " IN F 1910 Anna 100\n", + " IN F 1910 Pauline 77\n", + " IN F 1910 Beulah 39\n", "\n", - "[5552452 rows x 5 columns]" + "[? rows x 5 columns]" ] }, - "execution_count": 13, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" - }, - { - "data": { - "text/html": [ - "✅ Completed. \n", - " Query processed 215.9 MB in 9 seconds of slot time. [Job bigframes-dev:US.job_IEjIRaqt2w-_pAttPw1VAVuRPxA7 details]\n", - " " - ], - "text/plain": [ - "[5552452 rows]
" + "9 1910" ], "text/plain": [ "1910\n", @@ -531,10 +443,7 @@ "1910\n", "1910\n", "1910\n", - "Name: year, dtype: Int64\n", - "...\n", - "\n", - "[5552452 rows]" + "Name: year, dtype: Int64" ] }, "execution_count": 7, @@ -592,8 +501,16 @@ "id": "programmatic-header", "metadata": {}, "source": [ - "## 3. Programmatic Widget Control\n", - "You can also instantiate the `TableWidget` directly for more control, such as checking page counts or driving navigation programmatically." + "## 3. Deferred Execution Mode\n", + "By default, complex or potentially expensive queries are loaded in **Deferred Mode**. This displays a preview of the widget and a **Run Query and Display Widget** button, allowing you to confirm the operation before loading the data.\n", + "\n", + "This is particularly useful for generative AI tasks or queries involving large-scale data processing.\n", + "\n", + "### Disabling Deferred Mode\n", + "If you prefer to always execute queries and display results immediately, you can disable deferred mode globally:\n", + "```python\n", + "bpd.options.display.anywidget_deferred = False\n", + "```" ] }, { @@ -606,7 +523,7 @@ "data": { "text/html": [ "✅ Completed. \n", - " Query processed 215.9 MB in 11 seconds of slot time. [Job bigframes-dev:US.job_XwXTDb6gWVkuyIFMeWA0waE33bSg details]\n", + " Query processed 215.9 MB in 14 seconds of slot time. [Job bigframes-dev:US.job_gni9I-cvUzZ1770rv_xL_cnA6TEa details]\n", " " ], "text/plain": [ @@ -620,7 +537,7 @@ "data": { "text/html": [ "✅ Completed. \n", - " Query processed 215.9 MB in 7 seconds of slot time. [Job bigframes-dev:US.job_bCW0LYK5_PzyyGPf9OAg4YfNMG1C details]\n", + " Query processed 215.9 MB in 9 seconds of slot time. [Job bigframes-dev:US.job_tnEKUOAfF3k5mWUWX1_8aAfqhTlG details]\n", " " ], "text/plain": [ @@ -640,12 +557,12 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "a6a2b19314b04283a5a66ca9d66eb771", + "model_id": "b013cf02a6a240ea90e4f74d4c1127b7", "version_major": 2, "version_minor": 1 }, "text/plain": [ - "5 rows × 15 columns
\n", - "[5 rows x 15 columns in total]" + "[None rows x 15 columns in total]" ], "text/plain": [ " result \\\n", @@ -1017,34 +922,34 @@ "4 gs://gcs-public-data--labeled-patents/espacene... EU DE \n", "\n", " publication_date class_international class_us application_number \\\n", - "0 03.10.2018 H01L 21/20