Skip to content

Commit

Permalink
#19: Moved SLC notebook to repo ai-lab
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jun 17, 2024
1 parent ef0881e commit 95ab9d6
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "70724412-6577-4e69-86a1-b0d94e32eb96",
"metadata": {},
"source": [
"# Script-Languages-Release\n",
"\n",
"Here we will clone the <a href=\"https://github.com/exasol/script-languages-release\" target=\"_blank\" rel=\"noopener\">Script-Languages-Release</a> Github repository which provides the Script-Languages-Container build config used to build the builtin container of the Exasol DB or to build customized container.\n",
"\n",
"## Prerequisites\n",
"\n",
"Prior to using this notebook the following steps need to be completed:\n",
"1. [Configure the AI-Lab](../main_config.ipynb).\n",
"\n",
"## Setup\n",
"\n",
"### Open Secure Configuration Storage\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "e70ad0a9-7042-4fe8-814b-5c586b9bee6d",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "85a5beca5a144e66b4c900654a02ca03",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ec9f910e777a4a9999dcd13fdfb6a49c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Box(children=(Box(children=(Label(value='Configuration Store', layout=Layout(border_bottom='solid 1px', border…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%run ../utils/access_store_ui.ipynb\n",
"display(get_access_store_ui('../'))"
]
},
{
"cell_type": "markdown",
"id": "9f02bc2f-411f-4479-b2e2-1afef96e4bd8",
"metadata": {},
"source": [
"# Load UI functions\n",
"Let's import some other UI functions that may be used in this notebook."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "224345da-f14e-4a45-bf8a-07e3ba0870dc",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1782f10141b54abbb308f5f13daeb7f8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%run ../utils/main_config_ui.ipynb"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "d29dfd37-a1fa-4a3f-83a2-3d9c9038a0a8",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "40bbb9788bfc4a6aadb98dedcc0eb08a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Box(children=(Box(children=(Label(value='Script-Languages-Container Configuration', layout=Layout(border_botto…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"display(get_slc_config_ui(ai_lab_config))"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "31132726-9827-4c9b-8fb8-0884d2f36e67",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/jupyter/script_languages_release\n"
]
},
{
"data": {
"text/plain": [
"git.RootModule(name=__ROOT__, path=, url=, branch_path=refs/heads/master)"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from git import Repo\n",
"\n",
"dir = ai_lab_config.get(\"slc_directory\")\n",
"print (dir)\n",
"repo = Repo.clone_from(\"https://github.com/exasol/script-languages-release\", dir)\n",
"repo.submodule_update(recursive=True)\n",
"print(\"Ready)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "43f75bb6-cf59-44d1-b8a0-74ed05be09ba",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ sqlalchemy_exasol==4.6.3
stopwatch.py==2.0.1
boto3==1.26.163
exasol-notebook-connector @ git+https://github.com/exasol/notebook-connector.git@main
pickleshare==0.7.5 # See https://github.com/exasol/ai-lab/issues/291 for details.
pickleshare==0.7.5 # See https://github.com/exasol/ai-lab/issues/291 for details.
exasol-script-languages-container-tool==0.19.0
GitPython>=2.1.0

0 comments on commit 95ab9d6

Please sign in to comment.