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",
+ " id | \n",
+ " name | \n",
+ " price | \n",
+ " quantity | \n",
+ " created_at | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1 | \n",
+ " Laptop | \n",
+ " 999.99 | \n",
+ " 10 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 2 | \n",
+ " Smartphone | \n",
+ " 499.99 | \n",
+ " 25 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 3 | \n",
+ " Tablet | \n",
+ " 299.99 | \n",
+ " 15 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " 4 | \n",
+ " Headphones | \n",
+ " 79.99 | \n",
+ " 50 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " 5 | \n",
+ " Smartwatch | \n",
+ " 199.99 | \n",
+ " 20 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " id | \n",
+ " name | \n",
+ " price | \n",
+ " quantity | \n",
+ " created_at | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1 | \n",
+ " Laptop | \n",
+ " 999.99 | \n",
+ " 10 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 2 | \n",
+ " Smartphone | \n",
+ " 499.99 | \n",
+ " 25 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 3 | \n",
+ " Tablet | \n",
+ " 299.99 | \n",
+ " 15 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " 4 | \n",
+ " Headphones | \n",
+ " 79.99 | \n",
+ " 50 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " 5 | \n",
+ " Smartwatch | \n",
+ " 199.99 | \n",
+ " 20 | \n",
+ " 2024-11-21 17:06:45 | \n",
+ "
\n",
+ " \n",
+ "
\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