@@ -654,10 +654,6 @@ def _initialize_colspace(
654
654
def max_rows_displayed (self ) -> int :
655
655
return min (self .max_rows or len (self .frame ), len (self .frame ))
656
656
657
- def _is_in_terminal (self ) -> bool :
658
- """Check if the output is to be shown in terminal."""
659
- return bool (self .max_cols == 0 or self .max_rows == 0 )
660
-
661
657
@property
662
658
def max_cols_adj (self ) -> Optional [int ]:
663
659
"""Number of columns fitting the screen."""
@@ -677,12 +673,6 @@ def max_cols_adj(self) -> Optional[int]:
677
673
self ._max_cols_adj = self .max_cols
678
674
return self ._max_cols_adj
679
675
680
- def _is_screen_narrow (self , max_width ) -> bool :
681
- return bool (self .max_cols == 0 and len (self .frame .columns ) > max_width )
682
-
683
- def _is_screen_short (self , max_height ) -> bool :
684
- return bool (self .max_rows == 0 and len (self .frame ) > max_height )
685
-
686
676
@property
687
677
def max_rows_adj (self ) -> Optional [int ]:
688
678
"""Number of rows fitting the screen."""
@@ -706,6 +696,16 @@ def max_rows_adj(self) -> Optional[int]:
706
696
max_rows = min (self .min_rows , max_rows )
707
697
return max_rows
708
698
699
+ def _is_in_terminal (self ) -> bool :
700
+ """Check if the output is to be shown in terminal."""
701
+ return bool (self .max_cols == 0 or self .max_rows == 0 )
702
+
703
+ def _is_screen_narrow (self , max_width ) -> bool :
704
+ return bool (self .max_cols == 0 and len (self .frame .columns ) > max_width )
705
+
706
+ def _is_screen_short (self , max_height ) -> bool :
707
+ return bool (self .max_rows == 0 and len (self .frame ) > max_height )
708
+
709
709
def _get_number_of_auxillary_rows (self ) -> int :
710
710
"""Get number of rows occupied by prompt, dots and dimension info."""
711
711
dot_row = 1
0 commit comments