diff --git a/project/ui/qprof-ui.ipynb b/project/ui/qprof-ui.ipynb index 10c229c2..541f0baa 100644 --- a/project/ui/qprof-ui.ipynb +++ b/project/ui/qprof-ui.ipynb @@ -1640,6 +1640,19 @@ }, "outputs": [], "source": [ + "explain_warning = widgets.HTML(\"\"\"\n", + "\n", + "
\n", + " Warning: Correct EXPLAIN output depends on being connected to the same database where the query was run, or an equivalent database.\n", + "
\n", + "\"\"\")\n", + "\n", "if comparison:\n", " button_run_explain_plan_1 = widgets.Button(description=\"Run Explain Plan\")\n", " explain_output_1 = widgets.Output()\n", @@ -1710,6 +1723,7 @@ " \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", @@ -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", " " ] },