Skip to content

Commit

Permalink
Added navigation for multiple queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mail4umar committed Nov 6, 2024
1 parent 64e25ef commit 0a079a0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion verticapy/performance/vertica/qprof_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
)

Expand Down

0 comments on commit 0a079a0

Please sign in to comment.