def varexp(line):
 ip = get_ipython()
 (funcname, name) = line.split()
 import spyder.pyplot
 __fig__ = spyder.pyplot.figure()
 __items__ = getattr(spyder.pyplot, funcname[2:])(ip.user_ns[name])
 spyder.pyplot.show()
 del __fig__, __items__

def varexp ( line ) : ip = get_ipython ( ) ( funcname , name ) = line . split ( ) import spyder . pyplot __fig__ = spyder . pyplot . figure ( ) __items__ = getattr ( spyder . pyplot , funcname [ 2 : ] ) ( ip . user_ns [ name ] ) spyder . pyplot . show ( ) del __fig__ , __items__
spyders variable explorer magic used to generate plots .