# MNE objects not shown in Spyder variable explorer

**URL:** <https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296>\
**Category:** Support & Discussions\
**Created:** [June 21, 2021, 3:05pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296 "2021-06-21T15:05:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [June 21, 2021, 3:05pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/1 "2021-06-21T15:05:18Z")

</div>

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:

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

```

Have you guys ever seen this error?

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [June 21, 2021, 4:15pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/2 "2021-06-21T16:15:56Z")

</div>

what I see is

```python
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.

---

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [June 21, 2021, 5:22pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/3 "2021-06-21T17:22:54Z")

</div>

It is `spyder-kernels 2.0.4`  
and

```python
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

```

---

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [June 21, 2021, 5:25pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/4 "2021-06-21T17:25:00Z")

</div>

What I did si clicking here

 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/755ba46fbf7344bb53543123d175623fa558652e.png)

---

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [June 21, 2021, 5:28pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/5 "2021-06-21T17:28:10Z")

</div>

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:

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

```

 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/958d196fbfe5bd4712a4680f902f7f05376d7e06.png)  
basically like in pycharm  
 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/cada48ee2022c32422108aba677793d9b6b7dbc9.png)  
This is a Raw object.

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [June 21, 2021, 5:49pm UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/6 "2021-06-21T17:49:10Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [June 22, 2021, 6:34am UTC](https://mne.discourse.group/t/mne-objects-not-shown-in-spyder-variable-explorer/3296/7 "2021-06-22T06:34:18Z")

</div>

Thank you so much for your help!
