Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view class objects in Spyder's variable explorer

This is a repeat of this question. It seems that I can't view instances of my classes in the variable explorer in Python, when I'm debugging.

There the answer claims that this is resolved, so I'm wondering what I'm doing wrong.

like image 502
Eric Auld Avatar asked Jun 01 '18 00:06

Eric Auld


Video Answer


1 Answers

(Spyder maintainer here) By default we show builtins (ints, floats, strings, list, dicts and tuples), Numpy arrays and Dataframes in our Variable Explorer.

If you want to see all objects present in your namespace, you need to go to the menu

Tools > Preferences > Variable Explorer

and turn off the option called

Exclude unsupported data types

like image 53
Carlos Cordoba Avatar answered Sep 21 '22 15:09

Carlos Cordoba