From 417f6457e3635f0ae0a57024a6d0f5eebcf3f36b Mon Sep 17 00:00:00 2001 From: Maxim Popov Date: Thu, 22 Jan 2026 17:36:34 +0000 Subject: [PATCH] [debugger] PY-87085 fix pandas table view and choose debugpy port on every run Merge-request: IJ-MR-188878 Merged-by: Maxim Popov Space-RevId: 897ecb89d98150588bc3bac366eac0a2bfac3ebd GitOrigin-RevId: 36deaa275a5bdb887f03d3a0ff1e07f6e76c1cf0 --- .../pydevd/_pydevd_bundle/custom/pydevd_tables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/helpers/debugpy/_vendored/pydevd/_pydevd_bundle/custom/pydevd_tables.py b/python/helpers/debugpy/_vendored/pydevd/_pydevd_bundle/custom/pydevd_tables.py index 512d5a8d88b0..a7dfc15db385 100644 --- a/python/helpers/debugpy/_vendored/pydevd/_pydevd_bundle/custom/pydevd_tables.py +++ b/python/helpers/debugpy/_vendored/pydevd/_pydevd_bundle/custom/pydevd_tables.py @@ -95,11 +95,11 @@ def __get_table_provider(output): 'tensorflow.python.framework.sparse_tensor.SparseTensor', 'torch.Tensor'] table_provider = None - if type_qualified_name in ['pandas.core.frame.DataFrame', - 'pandas.core.series.Series', - 'geopandas.geoseries.GeoSeries', - 'geopandas.geodataframe.GeoDataFrame', - 'pandera.typing.pandas.DataFrame']: + if type_qualified_name.startswith('pandas') and type_qualified_name.endswith('DataFrame') \ + or type_qualified_name.startswith('pandas') and type_qualified_name.endswith('Series') \ + or type_qualified_name.startswith('geopandas') and type_qualified_name.endswith('GeoSeries') \ + or type_qualified_name.startswith('geopandas') and type_qualified_name.endswith('GeoDataFrame') \ + or type_qualified_name.startswith('pandera') and type_qualified_name.endswith('DataFrame'): import _pydevd_bundle.custom.tables.pydevd_pandas as table_provider # dict is needed for sort commands elif type_qualified_name == 'builtins.dict':