@@ -282,10 +282,10 @@ def _get_byproduct_cf_plot(self):
282282            ][0 ]
283283            source  =  ColumnDataSource (self .cf_data_source )
284284            plot  =  figure (
285-                 sizing_mode = "stretch_both" ,
286285                title = "Available Counterfactuals" ,
287286                tools = ["crosshair" ],
288287                tooltips = "@{{Tooltip {}}}" .format (output_name ),
288+                 sizing_mode = "stretch_both" ,
289289            )
290290            plot .xgrid .grid_line_color  =  None 
291291            plot .xaxis .axis_label  =  "Counterfactual House Value" 
@@ -328,19 +328,27 @@ def _get_plots(self):
328328                tabs = [
329329                    TabPanel (child = lime_figures [k ], title = "LIME" ),
330330                    TabPanel (
331-                         child = Div (text = LIME_TEXT .format (output_html (title ))),
331+                         child = Div (
332+                             text = LIME_TEXT .format (output_html (title )),
333+                             styles = {"overflow-y" : "scroll" },
334+                         ),
332335                        title = "About LIME" ,
333336                    ),
334-                 ]
337+                 ],
338+                 sizing_mode = "stretch_both" ,
335339            )
336340            shap_tabbed  =  Tabs (
337341                tabs = [
338342                    TabPanel (child = shap_figures [k ], title = "SHAP" ),
339343                    TabPanel (
340-                         child = Div (text = SHAP_TEXT .format (output_html (title ))),
344+                         child = Div (
345+                             text = SHAP_TEXT .format (output_html (title )),
346+                             styles = {"overflow-y" : "scroll" },
347+                         ),
341348                        title = "About SHAP" ,
342349                    ),
343-                 ]
350+                 ],
351+                 sizing_mode = "stretch_both" ,
344352            )
345353
346354            cf_tabbed  =  Tabs (
@@ -352,15 +360,19 @@ def _get_plots(self):
352360                        ),
353361                        title = "About Counterfactuals" ,
354362                    ),
355-                 ]
363+                 ],
364+                 sizing_mode = "stretch_both" ,
356365            )
357366
367+             # trustyai_content = row(column(lime_tabbed, shap_tabbed), cf_tabbed) 
368+ 
358369            trustyai_content  =  GridBox (
359370                children = [
360371                    (lime_tabbed , 0 , 0 , 1 , 1 ),
361372                    (shap_tabbed , 1 , 0 , 1 , 1 ),
362373                    (cf_tabbed , 0 , 1 , 2 , 2 ),
363-                 ]
374+                 ],
375+                 sizing_mode = "stretch_width" ,
364376            )
365377            joint  =  column (
366378                Div (
@@ -369,11 +381,10 @@ def _get_plots(self):
369381                    )
370382                ),
371383                trustyai_content ,
372-                 sizing_mode = "scale_width" ,
373384            )
374385            tabs .append (TabPanel (child = joint , title = title ))
375386
376-         full_dash  =  Tabs (tabs = tabs , sizing_mode = "scale_width " )
387+         full_dash  =  Tabs (tabs = tabs , sizing_mode = "scale_both " )
377388        return  full_dash 
378389
379390    def  run (self , display = True ):
0 commit comments