Is there a way to view arrays like Matlab has in the workspace variables?
I have always found it useful to open up an array (matrix in Matlab) to see the values in a matrix/vector when debugging. For instance, if I see a vector is just a bunch of ones and zeros, I can tell if that is the expected output or not. I am learning on Jupyter notebook, so I imagine its interface dependent. But how else do people do a rapid check of matrix values to tell if they're bogus or not?
Posted Dec 22, 2020, 11:03 AM UTC
Spyder has a variable viewer you can use, but for largerish arrays that I want to really get a good look at I export to excel using pandas. But, for big arrays I have problems with it causing my python to stop working, so if your array is too big slice it into pieces if you can. Fortunately this has always worked for even the largest arrays I've dealt with because its typically simulation data where several simulations are chunked together into one array.