diff --git a/project/ui/conn.ipynb b/project/ui/conn.ipynb index 5ae38d5e..05445feb 100644 --- a/project/ui/conn.ipynb +++ b/project/ui/conn.ipynb @@ -39,6 +39,7 @@ "button_html2 = f\"{button_label2}\"\n", "\n", "\n", + "\n", "# Create HTML widgets\n", "html_button1 = widgets.HTML(value=button_html1)\n", "html_button2 = widgets.HTML(value=button_html2)\n", @@ -62,6 +63,7 @@ "metadata": {}, "outputs": [], "source": [ + "# Importing libraries\n", "logging.info('[Connection Page] Importing libraries')\n", "from ipywidgets import interact, interactive, fixed, interact_manual\n", "import ipywidgets as widgets\n", @@ -80,7 +82,7 @@ "metadata": {}, "outputs": [], "source": [ - "# style = {'description_width': '150px', 'width' : '400px'}\n", + "# input text boxes\n", "logging.info('[Connection Page] Creating the widgets for input')\n", "host = widgets.Text(description = \"Host\",placeholder = \"Enter Host (default is 'verticadb')\", layout=widgets.Layout(width='350px'))\n", "port = widgets.Text(description = \"Port\", placeholder = \"Enter Port (default is 5433)\", layout=widgets.Layout(width='350px'))\n", @@ -89,7 +91,7 @@ "database = widgets.Text(description = \"Database\", placeholder = \"Enter Database (default is 'demo')\", layout=widgets.Layout(width='350px'))\n", "name = widgets.Text(description = \"Name\", placeholder = \"Enter Name (default is 'VerticaDSN')\", layout=widgets.Layout(width='350px'))\n", "\n", - "connection_timeout = widgets.Text(description = \"Connection Timeout\", placeholder = \"Time in seconds (default is 5)\", layout=widgets.Layout(width='350px'))\n", + "connection_timeout = widgets.Text(description = \"Connection timeout\", placeholder = \"Time in seconds (default is 5)\", layout=widgets.Layout(width='350px'))\n", "connection_timeout.style.description_width = '130px'\n", "autocommit = widgets.Checkbox(value = False, description = 'Autocommit', disabled = False, indent = False,layout=widgets.Layout(width = '350px',align_items='flex-end'))\n", "\n", @@ -106,46 +108,92 @@ "kerberos_service_name.style.description_width = '150px'\n", "\n", "backup_server_node = [\"localhost\"]\n", + "connection_inputs = widgets.VBox([\n", + " host,\n", + " port,\n", + " user,\n", + " password,\n", + " database,\n", + " name,\n", + " connection_timeout\n", + "])\n", "\n", "logging.info('[Connection Page] Created all widgets')" ] }, { - "cell_type": "markdown", - "id": "e5731b71-031a-40ff-ac8e-7e88c2f5c170", + "cell_type": "code", + "execution_count": null, + "id": "86581e04-8bf7-4e09-983e-fc89e32f67ae", "metadata": {}, + "outputs": [], "source": [ - "## Please enter connection details" + "%%html\n", + "
\n", + " \n", + " \n", + " \n", + "