Skip to content

Commit

Permalink
Update notebook checks and push validated notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Jul 27, 2023
1 parent b17c283 commit 9fe28ba
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 251 deletions.
5 changes: 2 additions & 3 deletions notebooks/atlas-and-kai/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Mongo Atlas and SingleStore Kai</h1>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Mongo Atlas &amp; SingleStore Kai</h1>\n",
" </div>\n",
"</div>"
]
Expand Down Expand Up @@ -680,8 +680,7 @@
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
17 changes: 15 additions & 2 deletions notebooks/getting-started-with-dataframes/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
"cell_type": "markdown",
"id": "caa4ce39-2f84-48b7-92b5-dccf6bede32b",
"metadata": {},
"source": "<div id=\"singlestore-header\" style=\"display: flex; background-color: rgba(235, 249, 245, 0.25); padding: 5px;\">\n <div id=\"icon-image\" style=\"width: 90px; height: 90px;\">\n <img width=\"100%\" height=\"100%\" src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/header-icons/browser.png\" />\n </div>\n <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Getting Started with DataFrames in SingleStoreDB</h1>\n </div>\n</div>"
"source": [
"<div id=\"singlestore-header\" style=\"display: flex; background-color: rgba(235, 249, 245, 0.25); padding: 5px;\">\n",
" <div id=\"icon-image\" style=\"width: 90px; height: 90px;\">\n",
" <img width=\"100%\" height=\"100%\" src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/header-icons/browser.png\" />\n",
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Getting Started with DataFrames in SingleStoreDB</h1>\n",
" </div>\n",
"</div>"
]
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -444,7 +454,10 @@
"cell_type": "markdown",
"id": "b40a7c86-2b36-4dad-a92f-d88f44410ec6",
"metadata": {},
"source": "<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n <div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n</div>"
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
"metadata": {
Expand Down
5 changes: 2 additions & 3 deletions notebooks/getting-started-with-notebooks/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Getting Started with SingleStoreDB Notebooks</h1>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Getting Started with Notebooks</h1>\n",
" </div>\n",
"</div>"
]
Expand Down Expand Up @@ -403,8 +403,7 @@
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
5 changes: 2 additions & 3 deletions notebooks/image-matching-with-sql/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Image Matching in SingleStoreDB with SQL</h1>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Image Matching with SQL</h1>\n",
" </div>\n",
"</div>"
]
Expand Down Expand Up @@ -516,8 +516,7 @@
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
37 changes: 1 addition & 36 deletions notebooks/integrating-with-pandas/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -957,48 +957,13 @@
"DROP DATABASE IF EXISTS pandas_integration;"
]
},
{
"cell_type": "markdown",
"id": "92354f6d-4af9-49fd-9bbc-8725bec8dca1",
"metadata": {},
"source": [
"## Code Snippets\n",
"\n",
"This section is here to make copying and pasting of the headers, footers, notes, etc. easier.\n",
"\n",
"### Header code\n",
"\n",
"```html\n",
"<div id=\"singlestore-header\" style=\"display: flex; background-color: INSERT_BACKGROUND_COLOR; padding: 5px;\">\n",
" <div id=\"icon-image\" style=\"width: 90px; height: 90px;\">\n",
" <img width=\"100%\" height=\"100%\" src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/header-icons/INSERT_HEADER_NAME.png\" />\n",
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">INSERT_NOTEBOOK_TITLE</h1>\n",
" </div>\n",
"</div>\n",
"```\n",
"\n",
"### Footer code\n",
"\n",
"```html\n",
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
" <div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>\n",
"```\n",
"\n",
"### Info code"
]
},
{
"cell_type": "markdown",
"id": "dca02e68-11a8-46b9-b2eb-35f466d0c96e",
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
" <div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion notebooks/launch-open-source-apps-with-langchain/meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ title="Launch Open-Source Apps with LangChain"
description="""\
LangChain connector to use SingleStoreDB as your vector database for your apps. \
"""
icon=""
icon="vector-circle"
tags=["vectordb", "genai", "langchain"]
destinations=[]
22 changes: 18 additions & 4 deletions notebooks/launch-open-source-apps-with-langchain/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"cells": [
{
"cell_type": "markdown",
"id": "e4bb409e",
"id": "7d9894c5-8938-4790-8acf-44882f2d3391",
"metadata": {},
"source": [
"<div style=\"background-color: #1B1A21; text-align: right; margin-bottom: -1px\">\n",
" <img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-banner.png\" style=\"padding: 0px; padding-right: 20px; margin: 0px; padding-top: 20px; height: 60px\"/>\n",
" <img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/banner-colors.png\" style=\"width:100%; height: 50px; padding: 0px; margin: 0px; margin-bottom: -8px\"/>\n",
"<div id=\"singlestore-header\" style=\"display: flex; background-color: rgba(209, 153, 255, 0.25); padding: 5px;\">\n",
" <div id=\"icon-image\" style=\"width: 90px; height: 90px;\">\n",
" <img width=\"100%\" height=\"100%\" src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/header-icons/vector-circle.png\" />\n",
" </div>\n",
" <div id=\"text\" style=\"padding: 5px; margin-left: 10px;\">\n",
" <div id=\"badge\" style=\"display: inline-block; background-color: rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 8px; align-items: center; margin-top: 6px; margin-bottom: -2px; font-size: 80%\">SingleStore Notebooks</div>\n",
" <h1 style=\"font-weight: 500; margin: 8px 0 0 4px;\">Launch Open-Source Apps with LangChain</h1>\n",
" </div>\n",
"</div>"
]
},
Expand Down Expand Up @@ -224,6 +229,15 @@
"\n",
"print(response['choices'][0]['message']['content'])"
]
},
{
"cell_type": "markdown",
"id": "f1ce8da7-0868-47fd-8585-4777d26f3adc",
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
"metadata": {
Expand Down
191 changes: 0 additions & 191 deletions notebooks/launch-open-source-apps-with-langchain/notebook2.ipynb

This file was deleted.

3 changes: 1 addition & 2 deletions notebooks/movie-recommendation/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,7 @@
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
3 changes: 1 addition & 2 deletions notebooks/notebook-basics/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@
"metadata": {},
"source": [
"<div id=\"singlestore-footer\" style=\"background-color: rgba(194, 193, 199, 0.25); height:2px; margin-bottom:10px\"></div>\n",
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>\n",
"</div>"
"<div><img src=\"https://raw.githubusercontent.com/singlestore-labs/spaces-notebooks/master/common/images/singlestore-logo-grey.png\" style=\"padding: 0px; margin: 0px; height: 24px\"/></div>"
]
}
],
Expand Down
Loading

0 comments on commit 9fe28ba

Please sign in to comment.