[pycharm] PY-79461 PY-79531 Debugger: add progress bar

(cherry picked from commit 1008967b0dc07850d0d4f84018035915a9416e49)

GitOrigin-RevId: 6288eef0db6ab05f3fc89f6ae11525358b34ded9
This commit is contained in:
ekaterina.itsenko
2025-04-26 13:58:56 +02:00
committed by intellij-monorepo-bot
parent 7c2c005a18
commit 31a35cf636
5 changed files with 5 additions and 4 deletions

View File

@@ -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:

View File

@@ -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()

View File

@@ -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()

View File

@@ -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:

View File

@@ -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