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) 

>
>

On Monday, April 20, 2020 at 7:43:19 PM UTC+1, Richard Mchau wrote:
>
> 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!
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/65effe1c-b90f-40f7-8893-dfb2a736d2db%40googlegroups.com.

Reply via email to