[debugger] PY-87085 fix pandas table view and choose debugpy port on every run

Merge-request: IJ-MR-188878
Merged-by: Maxim Popov <maxim.popov@jetbrains.com>

Space-RevId: 897ecb89d98150588bc3bac366eac0a2bfac3ebd

GitOrigin-RevId: 36deaa275a5bdb887f03d3a0ff1e07f6e76c1cf0
This commit is contained in:
Maxim Popov
2026-01-22 17:36:34 +00:00
committed by intellij-monorepo-bot
parent 89de3dc87d
commit 417f6457e3
@@ -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':