spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.29k stars 1.61k forks source link

Spyder not showing all the variables generated by Pytorch tutorial #7553

Open isalirezag opened 6 years ago

isalirezag commented 6 years ago

I am using spyder 3.2.8, installed via conda, using pythong 3.6. im on ubuntu 16.04 I am trying this example https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html and i see spyder still not showing all the variables, i also marked the option exclude unsupported data type, but still a lot of variable in the loop are missing, e.g. i cannot see inputs, labels,outputs,loss, running_loss

ccordoba12 commented 6 years ago

Thanks for reporting. We'll take a look at this in a future release.

almarklein commented 6 years ago

I think you can remove "generated by Pytorch tutorial" from the title. Simply create a set and a list in the IPython console:

In [1]: a = {3,4,5}
In [2]: b = [3,4,5]

Only the list shows up in the variable explorer. Possibly also happens with other data types, but found this all the time with any set that I try.

Spyder version 3.3.1

almarklein commented 6 years ago

Maybe related to #7943 and #7880?

ccordoba12 commented 6 years ago

Simply create a set and a list in the IPython console

@almarklein, support for sets is already available in master.

Maybe related to #7943

Support for Enums has to be implemented because we didn't consider them before (we have to support objects in a case by case basis).

and #7880?

This issue is unrelated and easily fixable. The variable explorer fails because it's trying to fetch more data from a Dataframe (we fetch rows and columns in demand) while it's closed.

goanpeca commented 4 years ago

Is this still relevant for Spyder 4 @dalthviz ?

ccordoba12 commented 4 years ago

I'm sure Pytorch arrays are still not supported by us.