如何在Spyder的变量资源管理器中查看类对象 [英] How to view class objects in Spyder's variable explorer

查看:642
本文介绍了如何在Spyder的变量资源管理器中查看类对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是问题.调试时,似乎无法在Python的变量资源管理器中查看类的实例.

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.

推荐答案

(此处为Spyder维护程序)默认情况下,我们显示内置函数(int,浮点数,字符串,列表,字典和元组),Numpy数组和变量浏览器中的数据框.

(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

并关闭名为

Exclude unsupported data types

这篇关于如何在Spyder的变量资源管理器中查看类对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆