I know this is an old post, but I found a workaround. Each class object has a dictionary associated with it that contains the assigned variables. This is a little annoying, but you can set the global variable equal to this dictionary, which can be viewed in the Spyder Variable Explorer.
import numpy as np
class someClass:
def __init__(self):
self.var1=10
self.var2=np.ones((3,3,3))
self.var3=[np.ones((2,2,4))*i for i in range(5)]
b=someClass()
tempdict=b.__dict__
You will need to update tempdictevery time you change a variable, but this will work.
source
share