Skip to content

Commit

Permalink
docs[patch]: fix zoom (#14786)
Browse files Browse the repository at this point in the history
not sure why quarto is removing divs
  • Loading branch information
efriis authored Dec 16, 2023
1 parent 34e6f3f commit 1339710
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 63 deletions.
81 changes: 19 additions & 62 deletions docs/docs/expression_language/why.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@
"\n",
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"#### Without LCEL\n"
]
},
{
Expand All @@ -78,7 +76,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"from typing import List\n",
"\n",
"import openai\n",
Expand Down Expand Up @@ -107,14 +104,12 @@
"id": "cdc3b527-c09e-4c77-9711-c3cc4506cd95",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -147,7 +142,6 @@
"id": "3c0b0513-77b8-4371-a20e-3e487cec7e7f",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -158,8 +152,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -197,14 +190,12 @@
"id": "f8e36b0e-c7dc-4130-a51b-189d4b756c7f",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand All @@ -223,7 +214,6 @@
"id": "b9b41e78-ddeb-44d0-a58b-a0ea0c99a761",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -235,8 +225,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand All @@ -261,14 +250,12 @@
"id": "9b3e9d34-6775-43c1-93d8-684b58e341ab",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand All @@ -286,7 +273,6 @@
"id": "cc5ba36f-eec1-4fc1-8cfe-fa242a7f7809",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -298,8 +284,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -333,15 +318,12 @@
"await ainvoke_chain(\"ice cream\")\n",
"```\n",
"\n",
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">\n",
"\n",
"```python\n",
"chain.ainvoke(\"ice cream\")\n",
"```"
Expand All @@ -352,7 +334,6 @@
"id": "f6888245-1ebe-4768-a53b-e1fef6a8b379",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -364,8 +345,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -394,14 +374,12 @@
"id": "45342cd6-58c2-4543-9392-773e05ef06e7",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -429,7 +407,6 @@
"id": "ca115eaf-59ef-45c1-aac1-e8b0ce7db250",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -441,8 +418,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -477,14 +453,12 @@
"id": "52a0c9f8-e316-42e1-af85-cabeba4b7059",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -512,7 +486,6 @@
"id": "d7a91eee-d017-420d-b215-f663dcbf8ed2",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -524,8 +497,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -603,14 +575,12 @@
"id": "d1530c5c-6635-4599-9483-6df357ca2d64",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### With LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -665,7 +635,6 @@
"id": "370dd4d7-b825-40c4-ae3c-2693cba2f22a",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -679,8 +648,7 @@
"#### Without LCEL\n",
"\n",
"We'll `print` intermediate steps for illustrative purposes\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand All @@ -706,15 +674,13 @@
"id": "16bd20fd-43cd-4aaf-866f-a53d1f20312d",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"Every component has built-in integrations with LangSmith. If we set the following two environment variables, all chain traces are logged to LangSmith.\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -745,7 +711,6 @@
"id": "e25ce3c5-27a7-4954-9f0e-b94313597135",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>\n",
"\n",
Expand All @@ -759,8 +724,7 @@
"\n",
"#### Without LCEL\n",
"\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -800,14 +764,12 @@
"id": "f7ef59b5-2ce3-479e-a7ac-79e1e2f30e9c",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand All @@ -829,7 +791,6 @@
"id": "3af52d36-37c6-4d89-b515-95d7270bb96a",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>"
]
Expand All @@ -847,8 +808,7 @@
"<Column>\n",
"\n",
"#### Without LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -1025,14 +985,12 @@
"id": "9fb3d71d-8c69-4dc4-81b7-95cd46b271c2",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"\n",
"<Column>\n",
"\n",
"#### LCEL\n",
"\n",
"<div style=\"zoom:80%\">"
"\n"
]
},
{
Expand Down Expand Up @@ -1083,7 +1041,6 @@
"id": "e3637d39",
"metadata": {},
"source": [
"</div>\n",
"</Column>\n",
"</ColumnContainer>"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/src/theme/Columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function ColumnContainer({children}) {

export function Column({children}) {
return (
<div style={{ flex: "1 0 300px", padding: "10px", overflowX: "clip" }}>
<div style={{ flex: "1 0 300px", padding: "10px", overflowX: "clip", zoom: '80%' }}>
{children}
</div>
)
Expand Down

0 comments on commit 1339710

Please sign in to comment.