MNE objects not shown in Spyder variable explorer

Hi, I was using Spyder and I’ve encountered a little problem. In pycharm, we could see the attributes in variable explorer, and in Spyder, the class like mne.io.RawArray is not supportive. This error come out:

Spyder was unable to retrieve the value of this variable from the console.

Have you guys ever seen this error?

what I see is

Name   Type              Size     Value
raw    io.fiff.raw.Raw   166800   Raw object of mne.io.fiff.raw module

Please report your Spyder version and mne.sys_info() output.

It is spyder-kernels 2.0.4
and

Platform:      Windows-10
Python:        3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:37:01) [MSC v.1916 64 bit (AMD64)]
Executable:    D:\ProgramData\Miniconda3\envs\EEG\python.exe
CPU:           Intel64 Family 6 Model 158 Stepping 13, GenuineIntel: 16 cores
Memory:        Unavailable (requires "psutil" package)
mne:           0.23.0
numpy:         1.16.2 {blas=C:\\projects\\numpy-wheels\\numpy\\build\\openblas, lapack=C:\\projects\\numpy-wheels\\numpy\\build\\openblas}
scipy:         1.5.4
matplotlib:    3.2.2 {backend=Qt5Agg}

sklearn:       0.24.2
numba:         Not found
nibabel:       Not found
nilearn:       Not found
dipy:          Not found
cupy:          Not found
pandas:        1.1.5
mayavi:        Not found
pyvista:       Not found
vtk:           Not found

What I did si clicking here

Normally, if I clicked a variable in the variable explorer, for example, I build a class called test, and get an instance of test, a:

class test():
    
    def __init__(self):
        
        self.value = 1
        self.bias = 2
        
a = test()


basically like in pycharm

This is a Raw object.

This is pretty clearly a Spyder problem, not a problem with MNE-Python. (Note that it works with PyCharm, so it’s not anything wrong with our Raw objects). I know their error message says “don’t report this on GitHub” but it might be worth at least mentioning to them that when you click there you don’t in fact get an error in the console (at least I don’t… I checked both the interactive ipython console and the Spyder internal console).

1 Like

Thank you so much for your help!