From 0a079a0c4815a9040b67cc9c506771249c1386d6 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Wed, 6 Nov 2024 13:30:43 -0600 Subject: [PATCH] Added navigation for multiple queries --- verticapy/performance/vertica/qprof_interface.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/verticapy/performance/vertica/qprof_interface.py b/verticapy/performance/vertica/qprof_interface.py index 0eead32df..23eaa2862 100644 --- a/verticapy/performance/vertica/qprof_interface.py +++ b/verticapy/performance/vertica/qprof_interface.py @@ -1095,11 +1095,24 @@ def _create_controls(self): # Use separate functions to create the interactive controls q1_interactive = self._create_qprof1_controls() q2_interactive = self._create_qprof2_controls() - + navigation_controls_q1 = widgets.VBox( + [self.qprof1.transaction_buttons, self.qprof1.query_select_dropdown] + ) + navigation_controls_q1.layout.width = "50%" + navigation_controls_q1.layout.align_items = "center" + navigation_controls_q2 = widgets.VBox( + [self.qprof2.transaction_buttons, self.qprof2.query_select_dropdown] + ) + navigation_controls_q2.layout.width = "50%" + navigation_controls_q2.layout.align_items = "center" + navigation_controls_combined = widgets.HBox( + [navigation_controls_q1, navigation_controls_q2] + ) return widgets.VBox( [ widgets.HBox([q1_control, q2_control]), widgets.HBox([q1_interactive, q2_interactive]), + navigation_controls_combined, ] )