Spyder does not show lists and arrays in variable explorer

拜拜、爱过 提交于 2020-01-15 06:50:11

问题


i don't really know why, but Spyder is not able to show lists or arrays in the variable explorer anymore. Do you have the same problem, any fixes? I have that problem on two computers.

Example:

CSV = []
for x in os.listdir(location):
    if x.split(".")[-1] =="CSV":
        CSV.append(location+x)
CSV = np.array(CSV)

Thank you very much!


回答1:


Menu (Tools->Preferences->Variable Explorer) Shortcut (Ctrl+Alt+Shift+P)

Disable all the filters




回答2:


Just make sure "Exclude capitalized references" in "Tools->Preferences->Variable Explorer" is not marked. The reason you don't see your list in variable explorer is that your list name starts with capital letters and Spyder considers it a capitalized reference. If you define it as for example 'my_csv' or 'aCSV' instead of 'CSV', you don't need to change the setting and it will be fine.



来源:https://stackoverflow.com/questions/38788286/spyder-does-not-show-lists-and-arrays-in-variable-explorer

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