Python Forum
Variable Explorer in spyder - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Variable Explorer in spyder (/thread-41882.html)



Variable Explorer in spyder - driesdep - Apr-01-2024

Hello,

I don't know if there are many spyder users here: but i want to ask :
I have made a small program in python, but i don't understand, why the variable explorer does not
show my variables in the explorer .
(is it because they are in a function, but are the variables then not viewable in a function ???)

Is this not possible, or is there something wrong with this ?

Please do let me know you ideas ...

Many thanks in advance


RE: Variable Explorer in spyder - paul18fr - Apr-02-2024

Because all your variables are local ones (which are removed outside the function).

Use debug mode + breakpoints to verify it (ctrl + f5)