From 31a35cf636e2fda2e891149ae99feccdf61af4b3 Mon Sep 17 00:00:00 2001 From: "ekaterina.itsenko" Date: Sat, 26 Apr 2025 13:58:56 +0200 Subject: [PATCH] [pycharm] PY-79461 PY-79531 Debugger: add progress bar (cherry picked from commit 1008967b0dc07850d0d4f84018035915a9416e49) GitOrigin-RevId: 6288eef0db6ab05f3fc89f6ae11525358b34ded9 --- .../_pydevd_bundle/tables/images/pydevd_matplotlib_image.py | 2 +- .../_pydevd_bundle/tables/images/pydevd_numpy_based_image.py | 2 +- .../pydev/_pydevd_bundle/tables/images/pydevd_numpy_image.py | 2 +- .../pydev/_pydevd_bundle/tables/images/pydevd_pillow_image.py | 2 +- python/pluginResources/messages/PyBundle.properties | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_matplotlib_image.py b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_matplotlib_image.py index c9e71c12e106..f210bc34b3de 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_matplotlib_image.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_matplotlib_image.py @@ -15,7 +15,7 @@ def create_image(matplotlib_figure): bytes_data = bytes_buffer.getvalue() image_id = str(uuid.uuid4()) IMAGE_DATA_STORAGE[image_id] = bytes_data - return "{}".format(image_id) + return "{};{}".format(image_id, len(bytes_data)) finally: bytes_buffer.close() except Exception as e: diff --git a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_based_image.py b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_based_image.py index 6a3ab27f3a5d..a53adeceb738 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_based_image.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_based_image.py @@ -64,7 +64,7 @@ def create_image(arr): bytes_data = bytes_buffer.getvalue() image_id = str(uuid.uuid4()) IMAGE_DATA_STORAGE[image_id] = bytes_data - return image_id + return "{};{}".format(image_id, len(bytes_data)) finally: bytes_buffer.close() diff --git a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_image.py b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_image.py index 1549b1608486..2913967eb323 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_image.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_numpy_image.py @@ -46,7 +46,7 @@ def create_image(arr): bytes_data = bytes_buffer.getvalue() image_id = str(uuid.uuid4()) IMAGE_DATA_STORAGE[image_id] = bytes_data - return image_id + return "{};{}".format(image_id, len(bytes_data)) finally: bytes_buffer.close() diff --git a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_pillow_image.py b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_pillow_image.py index acfe8c59c8f7..dedbab77d4b8 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_pillow_image.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/images/pydevd_pillow_image.py @@ -15,7 +15,7 @@ def create_image(pillow_image): bytes_data = bytes_buffer.getvalue() image_id = str(uuid.uuid4()) IMAGE_DATA_STORAGE[image_id] = bytes_data - return "{}".format(image_id) + return "{};{}".format(image_id, len(bytes_data)) finally: bytes_buffer.close() except Exception as e: diff --git a/python/pluginResources/messages/PyBundle.properties b/python/pluginResources/messages/PyBundle.properties index 0528115db94f..d56039eee85d 100644 --- a/python/pluginResources/messages/PyBundle.properties +++ b/python/pluginResources/messages/PyBundle.properties @@ -781,6 +781,7 @@ debugger.data.view.failed.to.evaluate.expression=Failed to evaluate the expressi debugger.data.view.numpy.is.not.available=NumPy is not available. Install the module for proper data display. debugger.data.view.type.is.not.supported={0} is not supported debugger.data.view.empty.tab=Empty +debugger.data.view.loading.image=Loading image\u2026 debugger.numeric.view.as.dataframe=View as DataFrame debugger.numeric.view.as.array=View as Array debugger.numeric.view.as.series=View as Series