How to view class objects in Spyder's variable explorer

拈花ヽ惹草 提交于 2020-01-02 06:19:29

问题


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.


回答1:


(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



来源:https://stackoverflow.com/questions/50634481/how-to-view-class-objects-in-spyders-variable-explorer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!