mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[pycharm] PY-79461 PY-79531 Debugger: add progress bar
(cherry picked from commit 1008967b0dc07850d0d4f84018035915a9416e49) GitOrigin-RevId: 6288eef0db6ab05f3fc89f6ae11525358b34ded9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7c2c005a18
commit
31a35cf636
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user