Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion project/ui/qprof-ui.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,19 @@
},
"outputs": [],
"source": [
"explain_warning = widgets.HTML(\"\"\"\n",
"<style>\n",
".warning {\n",
" padding: 5px;\n",
" background-color: orange;\n",
" color: white;\n",
"}\n",
"</style>\n",
"<div class=\"warning\">\n",
" <strong>Warning:</strong> You can only run this function if you are connected to the same database where the query can be executed.\n",
"</div>\n",
"\"\"\")\n",
"\n",
"if comparison:\n",
" button_run_explain_plan_1 = widgets.Button(description=\"Run Explain Plan\")\n",
" explain_output_1 = widgets.Output()\n",
Expand Down Expand Up @@ -1710,6 +1723,7 @@
" </body>\n",
" \"\"\") \n",
" explain_plan_widget = widgets.HBox([left_side,vertica_border_line, right_side])\n",
" explain_plan_widget = widgets.VBox([explain_warning, explain_plan_widget])\n",
"else:\n",
" button_run_explain_plan = widgets.Button(description=\"Run Explain Plan\")\n",
" explain_output = widgets.Output()\n",
Expand All @@ -1735,7 +1749,7 @@
" qprof.get_qplan_explain()\n",
" \n",
" button_run_explain_plan.on_click(on_button_clicked_run_explain_plan)\n",
" explain_plan_widget = widgets.VBox([explain_dropdown, button_run_explain_plan, explain_output]) \n",
" explain_plan_widget = widgets.VBox([explain_warning, explain_dropdown, button_run_explain_plan, explain_output]) \n",
" "
]
},
Expand Down