diff --git a/examples/libro_guide_book.ipynb b/examples/libro_guide_book.ipynb index 248b0d91..6f3c7584 100644 --- a/examples/libro_guide_book.ipynb +++ b/examples/libro_guide_book.ipynb @@ -84,14 +84,104 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "12b0e2fa-a4a4-4e17-affb-2dd10ad3cabe", "metadata": { - "execution": {}, + "execution": { + "shell.execute_reply.end": "2024-11-21T17:06:50.333591Z", + "shell.execute_reply.started": "2024-11-21T17:06:50.308065Z", + "to_execute": "2024-11-21T17:06:50.301Z" + }, "libroCellType": "sql", "libroFormatter": "formatter-sql-magic" }, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idnamepricequantitycreated_at
01Laptop999.99102024-11-21 17:06:45
12Smartphone499.99252024-11-21 17:06:45
23Tablet299.99152024-11-21 17:06:45
34Headphones79.99502024-11-21 17:06:45
45Smartwatch199.99202024-11-21 17:06:45
\n", + "
" + ], + "text/plain": [ + " id name price quantity created_at\n", + "0 1 Laptop 999.99 10 2024-11-21 17:06:45\n", + "1 2 Smartphone 499.99 25 2024-11-21 17:06:45\n", + "2 3 Tablet 299.99 15 2024-11-21 17:06:45\n", + "3 4 Headphones 79.99 50 2024-11-21 17:06:45\n", + "4 5 Smartwatch 199.99 20 2024-11-21 17:06:45" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ "%%sql \n", "{\"result_variable\":\"df_1\",\"db_id\":\"sqlite: sql_demo\",\"sql_script\":\"select * from products\"}" @@ -99,13 +189,104 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "id": "83edeb90-a116-4ed2-b80e-c0a534e365c0", "metadata": { - "execution": {}, + "execution": { + "shell.execute_reply.end": "2024-11-21T17:07:02.840207Z", + "shell.execute_reply.started": "2024-11-21T17:07:02.820197Z", + "to_execute": "2024-11-21T17:07:02.843Z" + }, "libroFormatter": "formatter-string" }, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idnamepricequantitycreated_at
01Laptop999.99102024-11-21 17:06:45
12Smartphone499.99252024-11-21 17:06:45
23Tablet299.99152024-11-21 17:06:45
34Headphones79.99502024-11-21 17:06:45
45Smartwatch199.99202024-11-21 17:06:45
\n", + "
" + ], + "text/plain": [ + " id name price quantity created_at\n", + "0 1 Laptop 999.99 10 2024-11-21 17:06:45\n", + "1 2 Smartphone 499.99 25 2024-11-21 17:06:45\n", + "2 3 Tablet 299.99 15 2024-11-21 17:06:45\n", + "3 4 Headphones 79.99 50 2024-11-21 17:06:45\n", + "4 5 Smartwatch 199.99 20 2024-11-21 17:06:45" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "df_1" ] @@ -335,7 +516,7 @@ "\n", "https://github.com/difizen/libro\n", "\n", - "**libro,不只是笔记本,更是一个 灵感加速器!**" + "**libro,不只是笔记本,更是一个灵感加速器!**" ] } ], diff --git a/examples/sql_demo b/examples/sql_demo new file mode 100644 index 00000000..2257e9a6 Binary files /dev/null and b/examples/sql_demo differ