      def __init__(self, parent, selected_id, helptext):
          logger.debug("Initializing: %s: (parent, %s, selected_id: %s, helptext: '%s')",
                       self.__class__.__name__, parent, selected_id, helptext)
          super().__init__(parent)
          self.pack(side=tk.TOP, padx=5, pady=5, expand=True, fill=tk.X, anchor=tk.N)
  
          self.session = None  # set when loading or clearing from parent
          self.selected_id = selected_id
          self.popup_positions = list()
  
          self.add_label()
 
</s> remove         lbl = ttk.Label(self, text="Session Stats", anchor=tk.CENTER)
        lbl.pack(side=tk.TOP, expand=True, fill=tk.X, padx=5, pady=5)
 </s> add         lbl = ttk.Label(self.sub_frame, text="Session Stats", anchor=tk.CENTER)
        lbl.pack(side=tk.TOP, fill=tk.X, padx=5, pady=5)

    def resize_frame(self, event):
        """ Resize the options frame to fit the canvas """
        logger.debug("Resize Analysis Frame")
        canvas_width = event.width
        canvas_height = event.height
        self.canvas.itemconfig(self.tree_canvas, width=canvas_width, height=canvas_height)
        logger.debug("Resized Analysis Frame") </s> remove         self.tree = ttk.Treeview(self, height=1, selectmode=tk.BROWSE)
        self.scrollbar = ttk.Scrollbar(self,
                                       orient="vertical",
                                       command=self.tree.yview)
 </s> add         self.tree = ttk.Treeview(self.sub_frame, height=1, selectmode=tk.BROWSE)
        self.scrollbar = ttk.Scrollbar(self.tree_frame, orient="vertical", command=self.tree.yview)
        self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
 </s> remove         self.tree.tag_configure("total",
                                background="black",
                                foreground="white")
        self.tree.pack(side=tk.LEFT, expand=True, fill=tk.X)
        self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
 </s> add         self.tree.tag_configure("total", background="black", foreground="white")
        self.tree.pack(side=tk.TOP, fill=tk.X)
        self.pack(side=tk.TOP, padx=5, pady=5, fill=tk.BOTH, expand=True)
      def __init__(self, parent, selected_id, helptext):
          logger.debug("Initializing: %s: (parent, %s, selected_id: %s, helptext: '%s')",
                       self.__class__.__name__, parent, selected_id, helptext)
          super().__init__(parent)
        self.pack(side=tk.TOP, padx=5, pady=5, fill=tk.BOTH, expand=True)
        self.pack(side=tk.TOP, padx=5, pady=5, fill=tk.BOTH, expand=True)
          self.session = None  # set when loading or clearing from parent
          self.selected_id = selected_id
          self.popup_positions = list()
  
          self.add_label()
keep keep keep keep replace replace keep keep keep keep keep
 Analysis tab: Fix disappearing options on large datasets 
lib/gui/display_analysis.py