Skip to content

Commit

Permalink
Merge pull request #287 from vertica/nocode_ui_pages_update_11
Browse files Browse the repository at this point in the history
  • Loading branch information
oualib authored Aug 23, 2024
2 parents 914dfe0 + c9ccdf7 commit 66a06f9
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions project/ui/qprof_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -340,29 +340,19 @@
{
"cell_type": "code",
"execution_count": null,
"id": "75978929-0dee-4c7c-8199-28a59ca8b185",
"id": "47bc6e71-86ab-404e-9bfa-48599f6c3153",
"metadata": {},
"outputs": [],
"source": [
"# Function to create help icons\n",
"import ipywidgets as widgets\n",
"from IPython.display import display\n",
"\n",
"def create_tooltip(text):\n",
" button = widgets.Button(\n",
" description='?',\n",
" disabled=True,\n",
" button_style='', # 'success', 'info', 'warning', 'danger' or ''\n",
" tooltip=text\n",
" # Create an info icon using HTML\n",
" info_icon = widgets.HTML(\n",
" value=f'<span style=\"font-size: 25px; color: #007bff; cursor: pointer;\" title=\"{text}\">&#9432;</span>'\n",
" )\n",
" \n",
" # Style the button to look like a question mark icon\n",
" button.layout.width = '30px'\n",
" button.layout.height = '30px'\n",
" # button.style.button_color = '#007bff'\n",
" button.style.font_weight = 'bold'\n",
" # button.style.font_size = '16px'\n",
" # button.style.border_radius = '15px'\n",
" return button\n",
"\n"
" return info_icon"
]
},
{
Expand Down Expand Up @@ -798,7 +788,7 @@
"</head>\n",
"<body>\n",
" <div class=\"version\">\n",
" Page version update date: 7/5/2024\n",
" Page version update date: 8/9/2024\n",
" </div>\n",
"</body>\n",
"</html>"
Expand Down

0 comments on commit 66a06f9

Please sign in to comment.