New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variables don't show up in variable explorer (Python 3.6) #4154
Comments
Does it happen only in Python 3.6? |
As far as I can tell, yes. I did not have these issues with Python 3.5 and Spyder 2.3.8 on my other Windows 7 machine. |
Please update to Spyder 3.1.3 and try again. Our tests are running just fine in Python 3.6, and they detect if objects are displayed in the Variable Explorer. |
I believe I am also experiencing this issue and I am running 3.1.3 on Ubuntu. Ipdb reports... ipdb> sys.version_info
sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0) I was able to see the function of the Variable Explorer against this simple file... substitutions = dict(planet="World")
print("Hello {planet}".format(**substitutions)) ...and it correctly visualised the However, when interactively running against this file... However, the interactive ipdb pane is indeed able to inspect variables when running that file, for example, at a Spyder breakpoint on line 28 in test.py, I can do... ipdb> !locals().keys()
dict_keys(['BoxPassage', '___', 'Engine', 'ticks_ms', 'loadStory', '_oh', '_iii', 'ChoicePassage', '_ih', 'storyUid', '__package__', 'ConfirmationPassage', '_sh', '_', 'uidInitTypes', '__name__', 'UidRegistry', '__file__', '_i1', 'boxUids', 'getStoryContext', 'Card', 'UidItem', '_ii', 'In', '__builtins__', '_i2', '_dh', 'Container', 'Uid', '_i', '__', 'ConditionalPassage', '__spec__', 'passageUids', 'Box', '__doc__', '__builtin__', 'Story', 'Out', 'AnonymousContainer', 'PagePassage', 'exit', 'story', 'Item', '__loader__', '_i3', 'MockEngine', 'Passage', 'unittest', 'quit', 'get_ipython']) ...while nothing at all is shown in the Variable Explorer. I made sure to remove all spyder and spyder3 ubuntu packages via sudo -H pip3 install --update spyder To be doubly sure there was nothing weird going on, I then ran... pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 sudo -H pip3 install --upgrade ...to upgrade all pip3 packages to the latest, but still Spyder's Variable Explorer is not cooperating. |
Ok, if this issue is about debugging, then that's a bug and it was reported in issue #3711. It will be fixed in Spyder 3.2. |
Oops, I think looking in more detail perhaps the OP wasn't running the code through the debugger as I'd assumed, so I may have mistakenly hijacked this bug. I hadn't realised there was a variables viewer indicating the state of 'module' symbols at the end of a run, so I just assumed that the behaviour described was linked to debugging. My bad. Perhaps the OP can clarify. |
@ccordoba12 is there a pull request where I can contribute testing for this feature against the expected fix to land in spyder 3.2? I tried merging your Perhaps it's a 3.2 wishlist item to solve it and the code to solve it hasn't been written yet? Let me know if there's anything where live testing is useful. |
There is an option in the Variable Explorer called |
Yes @cefn this issue was occuring when not in the debugger. The variables should be updated at the end but they aren't if they even show up at all. The debugger seems to work most of the time. I can get them to show up if I run the debugger, but then after they do not update with subsequent runs. These are supported types like native Python types (string, int, list, etc). Thanks for looking into this |
Just wanted to chime back in and say that the variables are now showing up fine in Spyder 3.1.3 on Linux when using the following configuration in a conda virtual environment yml file: https://github.com/sayboltm/tmp/blob/master/spyder_working.yml I have a hunch that the version of QT I was running before may be related to the issue. I have had a lot of issues with QT for python with other projects that I only recently got sorted out. Edit: github link instead of pasting whole yml file |
Nevermind. Of course after many tests, as soon as I post that, it won't show the variables after a run in variable explorer. Well, there is my configuration. I hope you guys can fix that because that is hands-down my favorite feature and reason I use Spyder. |
I examined that box and it was unchecked, but much to my dismay, checking it, restarting spyder still did not fix this seemingly intermittent issue. This is quite puzzling. |
Has this been fixed? I run my code successfully but I am unable to view any of the variables in the variable explorer afterwards. Why is this? Spyder 3.2.0 with Python 3.5.3. |
Thanks @vishalnadagiri. Currently object-arrays (with Meanwhile:
|
Thank you @Prikers for the help, I just got to view the DataFrame by removing |
I have still seen this issue occur and as a result I run Spyder 2.3.8 when I really need to count on it to update and work properly. Problem is, that requires old matplotlib which limits what else I can work with. Just for this thread's sake I have begun testing Spyder 3.2.3 (latest supported by conda as of now) and go figure the variable explorer appears to be working. but I swear I tried on Linux and Windows with newer versions and it only sometimes works. The worst part is when it works at first, populates with variables (so you think its working), then quits working so the old data stays there and you wonder why your variables aren't being assigned properly etc. but its actually the variable explorer dying. When this happens I verify by typing a known supported type (int, string) into iPython console and see that it is not added into the variable explorer. Glad to see some activity here, I'll check back as I love the variable explorer. Favorite feature of spyder for sure! |
@Prikers Looking forward to this! Love being able to get people away from Matlab and into Python and open-source using Spyder as a gateway! |
@sayboltm if you can have a reproducible simple example, I will be willing to investigate! |
I got similar problem with Spyder 3.1.2 and Python 3.6. I do see my variables listed in Variable Explorer. But if I double click the array or matrix variable, I can't see the whole array or whole matrix as I used to be able to with 2.* version of Sypder. Can someone shed me some lights on how to get around this please? Thanks much in advance! |
The error message I received: 'Spyder was unable to retrieve the value of this variable from the console', with additional error message of 'Inspecting and setting values while debugging in IPython consoles is not supported yet by Spyder'. Nevertheless I am pretty sure that I could see the content of the whole dataframe in 2.* version of Spyder. |
@JasperAustin are you trying to see the variables while running the debugger? |
Yes, @Prikers , I'm trying to see the arrays in debugger |
Your problem was fixed in Spyder 3.2. Please update.
El 03/10/17 a las 15:34, JasperAustin escribió:
…
Yes, @Prikers <https://github.com/prikers> , I'm trying to see the
arrays in debugger
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWS7SsFdQRCZ039T-4G8PguiNdDVwpsks5sopppgaJpZM4MDpNC>.
|
Thanks, @ccordoba12. I'm new to Python. How can I update to Spyder 3.2 from 3.1.2? |
If you are using Anaconda you need to run in a system terminal (cmd.exe, Terminal.app or xterm)
If not, please run
|
Thanks again @ccordoba12 . I use Anaconda, and tried your 1st command twice but still got the following error: CondaHTTPError: HTTP None None for url An HTTP error occurred when trying to retrieve this URL. |
I have run
But that installed Spyder 3.1.2, not 3.2. (On Ubuntu 16.04 LTS) |
Hi everybody ! I have a little issue with my spyder. I first apologize to write my problem here ! That is not so important but I wish someone could help me ^^ Thank you a lot ! |
@ldesmet on the upper right corner of the variable explorer plugin there is a cog menu. In there, there are options to hide some variables such as:
Do these options fit your needs? |
Hi ! Thank you for your answer :) Unfortunately I've already checked these boxes. I still have these variables in the variable explorer when I open Spyder (once again, not a big deal, I just delete them manually but I would like to stop doing this ^^) Thank's again ! |
As soon as you open spyder (before running any script) these variables populate the variable explorer? |
Yes exactly ! I can join a picture if you want. |
@ldesmet It looks like the IPython console runs some code as soon as you open it, possibly importing numpy. Can you open your Preferences in Spyder (in the If none of this helps, a picture would be useful. |
Hi thank you for your answer ! I've just unchecked the box "Automatically import Pylab and Numpy modules" and now I don't see these variables anymore ! That works perfectly ! Thank you both of you @Prikers and @jitseniesen :) |
Hello, I am new to python and spyder and I have spyder 3.2.4 with Python 3.5 installed. I have a tensorflow code that runs fine. However, I have issues with debugging since it doesn't show any variable values associated with tensorflow in the console. Please see an example 'predict' below after running the code in debug mode. 'predict is the output of a tensorflow function. ipdb> i I am importing the following; Is there a workaround to show the tensorflow variable values in the console since that's important for debugging? Thanks! |
Greetings! I have a similar problem in the variable explorer. I am using Spyder 3.5. Please let me know if i am doing anything wrong here. When i write the below code , I am able to see welcome_str listed as in the variable explorer
Now if the write the same code using name=="main" , variable explorer is empty
|
I have experience the same bug on my attempt to implement the following code at the beginning of the script as an alternative to manually using %reset in the IPython console to clear the variable explorer from IPython import get_ipython debuged when imported some data from the GUI manualy |
I was also having this issue. I traced it to the use of an IPython startup script. I was doing some variable clean-up at the end and |
Yep, get_ipython is very important, not only for Spyder but for IPython. So please don't remove it. |
@jagadishkt, please open a new issue about your problem instead of posting in old and closed ones. Also, please post a simple code we can use to reproduce your error. |
@ccordoba12 thanks. It helped |
I have the same issue with Spyder 3.1.2 and Python 3.6. Functions are not executed properly - I see them running, but nothing is returned. This is also the case with dummy-test functions (like a+b return c). |
I was having same issue with spyder 3.3.6 . I uninstalled numpy, spyder and reinstalled both then problem has resolved. |
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect to see some output in the variables explorer. This happens on both Spyder 3.1.2 Linux and Windows.
Please provide any additional information below
Here is my code, attempting to implement Gaussian elmimination:
Version and main components
Dependencies
numpy is used
The text was updated successfully, but these errors were encountered: