Variable Explorer not showing anything?

1,920 views
Skip to first unread message

Richard Mchau

unread,
Apr 20, 2020, 2:43:19 PM4/20/20
to spyder
Hi all,
I am new to Python. Launched Spyder and typed a few lines of code from the book I am using. Sadly, my IDE doesn't seem to show what the book is showing. I have done the following...went to the Anaconda Powershell and run conda install numpy. It was successful. Yet I can't see anything on the Variable explorer. What am I missing. Attached are the images


Thanks for your help!
Not seeing the anything on variable explorer.PNG
Python version and conda info.PNG

Nayan Rajani

unread,
Apr 21, 2020, 5:24:39 PM4/21/20
to spyd...@googlegroups.com
well, it is not obvious, it seems like haven't installed all the required packages. so, go to the PowerShell as "Run as Administrator", then type 'pip install package-name'.
then only you can run commands.

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/c86b6d8f-df4f-4fea-8387-5b1bf48a2316%40googlegroups.com.


--

Logo

Nayan Rajani
Advisor, Srijan Entrepreneurship Cell
Mobile: +919039143457
Email: sri...@acropoli.in
Acropolis Group of Institutions,
Indore (M.P.)
Facebook icon  LinkedIn icon  Twitter icon  Instagram icon



Philip Yip

unread,
Apr 21, 2020, 5:24:39 PM4/21/20
to spyder
Functions have their own localised workspace and this is separate from the workspace shown within the variable explorer.
You have defined a function but haven't called it.

If you type something like:


import numpy as np
def calculate_money_growth(p0, r, t):
   
assert p0.size=t.size
   
return p0 * np.exp(r*t)
   
# functions workspace

# workspace of variable explorer
ap0
=1
ar
=1
at
=1
# assign an output value to the function and feed through input arguments
output
=money_growth(ap0,ar,at)

Savin Beniwal

unread,
Apr 21, 2020, 5:24:39 PM4/21/20
to spyder
Hi Richard

The Variable Explorer shows the namespace contents (all global object references, such as variables, functions, modules, etc.) of the currently selected IPython Console session, and allows you to interact with them through a variety of GUI-based editors. Please follow this link 

To see name contents in variable explorer just run the following code and I'm sure you will get entities in the variable explorer

import numpy as np
a=6
b=7
c=np.pi

Cordially
------

Richard Mchau

unread,
Apr 22, 2020, 12:11:12 AM4/22/20
to spyd...@googlegroups.com
Hey, I finally figure it out. Yay! I was supposed to assign input the values to variables in the console to get an output. Some of them are arrays. I did that and everything is working fine. That is the price of admission.
Thank you all for your help.

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
Finally_figured Out.PNG

Richard Mchau

unread,
Apr 22, 2020, 12:11:20 AM4/22/20
to spyd...@googlegroups.com
Thank you Nayan for your help.I went to powershell (anaconda) ran as admin, typed 'pip' then 'install (command)' then 'spyder'. The command line ran for about a minute or so. I did this while I had Anaconda and Spyder canceled. When I fired up the Anaconda>> Spyder>> I did not have any 'output.' I am not sure what I am doing wrong.

Nayan Rajani

unread,
Apr 24, 2020, 12:35:34 AM4/24/20
to spyd...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages