From 39da82d1b370d25543add3b9697ae77c9be3ec78 Mon Sep 17 00:00:00 2001 From: y-p Date: Sun, 28 Jul 2013 23:49:43 +0300 Subject: [PATCH] ENH: suppress display.height DeprecationWarning --- pandas/core/format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/format.py b/pandas/core/format.py index 2f4432e44b9f6..c9beb729b2436 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -1721,7 +1721,8 @@ def get_console_size(): Returns (None,None) in non-interactive session. """ display_width = get_option('display.width') - display_height = get_option('display.height') + # deprecated. + display_height = get_option('display.height', silent=True) # Consider # interactive shell terminal, can detect term size