From acf67f8ce6214fd7c02663e1fe791be7ab3f122d Mon Sep 17 00:00:00 2001 From: Nikita Ashihmin Date: Thu, 7 Mar 2024 11:50:29 +0400 Subject: [PATCH] [pycharm] PY-70716 Jupyter(fix): Jupyter Notebook empty numpy table output GitOrigin-RevId: 35be69dbad2aec395d2342b8fed629a200b052e1 --- python/helpers/pydev/_pydevd_bundle/tables/pydevd_numpy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_numpy.py b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_numpy.py index cb8590243fc5..05c6d5545584 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_numpy.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_numpy.py @@ -10,7 +10,10 @@ NP_ROWS_TYPE = "int64" is_pd = False try: import pandas as pd - + version = pd.__version__ + majorVersion = int(version[0]) + pd.set_option('display.max_colwidth', None) + is_pd = majorVersion>=1 is_pd = True except: pass