In Pycharm, I used to be able to view numpy array values, by clicking “View as array” inside the Evaluate window.
This values were displayed as numbers, an even colored from blue to red, depending on the value.
However after upgrading to Windows 11 and Installing the latest Pycharm community version, the view as array option shows the values not as numeric, but showing it’s type (eg: np.int64(3)
).
I tried casting the list into a np.int32 or even np.int8 arrays with the same results.
How can I make pycharm show me the actual numeric values, without their numpy type?
Steps to reproduce
myList = [1,2,3,4]
myArray = np.array(myList)
Alt+F8 to evaluate expression, type `myArray` and click "View as Array
“
My pycharm version:
PyCharm 2024.1.4 (Community Edition)
Build #PC-241.18034.82, built on June 24, 2024
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
And my python version
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32