These are chat archives for spyder-ide/public

15th
Oct 2018
KeVJoB
@KeVJoB
Oct 15 2018 11:49
.
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 18:10
?
Felix
@felix4webscience
Oct 15 2018 21:12
@CAM-Gerlach , hey I have a question, are you using spyder by itself or in combination with anaconda? And another question, did you ever worked by chance with the following library: https://pypi.org/project/LinearAlgebra/#files
(well, its not real a library... its more a bunch of definitions)
Felix
@felix4webscience
Oct 15 2018 21:23
Anhyow, here is my problem. I am using spyder in combination with anaconda. For the Book, I am working through right now, I need those data. Unfortuantaley, even the hint from the author himself (https://github.com/joelgrus/data-science-from-scratch/issues/1#issuecomment-429073257) is not working for me. I am not sure why not.
I have downloaded the file, I was able to install it in the anaconda prompt. But I can not find it in the user interface, where all the other libraries are. I have copied the unzipped file to the directory of my current anaconda environment. But also this is not working. I am not sure, what I am doing wrong. Any ideas, how to get this package to run?
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 21:23

are you using spyder by itself or in combination with anaconda

I use it in Anaconda, but I know some of the other developers use it with pip/virtualenv. There's not really such a thing as using Spyder "by itself", since both it and the scientific Python its used for require an environment with the appropriate packages to be useful, whether that's Anaconda, WinPython, Fink/Macports/Homebrew, Linux distro packages, manual pip+virtualenv/venv, etc.

And another question, did you ever worked by chance with the following library

Nope, sorry.

Felix
@felix4webscience
Oct 15 2018 21:24
ok. Thx
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 21:24
We have a guide for this actually...
Here you go @felix4webscience
Felix
@felix4webscience
Oct 15 2018 21:30
oh thats cool
I'll work through this one... thanx
Felix
@felix4webscience
Oct 15 2018 22:18
spyder_syntax_error01.PNG
Something else, why is it,... that sypder sometimes complains about wrong syntax but in Jupyter QtConsole it is working?
note: same env. in anaconda using 2.7 Python...
bug? Or have I missed something
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:20
image.png
You made a typo, lol.
Can't say I haven't ever done that 100 times before xD
Felix
@felix4webscience
Oct 15 2018 22:21
Oh
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:21
:)
Felix
@felix4webscience
Oct 15 2018 22:23
true... but wait
if you look at the first image, in the left hand corner...
there is no typo, right?
but its still marked with a red symbol (x)
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:27
num_cols = len(A[0]) if A else 0 is at the very least not idomatic/Pythonic python; it may be complaining about that. You also could be overriding something else named shape, or there could be another typo or Python 2-specific quirk I'm missing (I've used Python 3 as long as I've done serious data science, and never bothered with 2).
Felix
@felix4webscience
Oct 15 2018 22:28
grafik.png
hm, maybe I just should switch to 3.5
Thanx a lot... well "serious data science".... Somewhere I need to start at ;-) . . .
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:32
@felix4webscience I need to see the entirety of your previous function.
Can you take a full width sreenshot?
An error being reported there suggests there may be a problem with your return statement on the previous line, like missing a close paren or something.
Felix
@felix4webscience
Oct 15 2018 22:36
grafik.png
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:41
Yup, exactly like I said.
Missing a close paren on the return statement on the previous line.
Felix
@felix4webscience
Oct 15 2018 22:42
where :_(
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:42
An error being reported there suggests there may be a problem with your return statement on the previous line, like missing a close paren or something.
Felix
@felix4webscience
Oct 15 2018 22:43
found.
thanx...
I have to check more carefully and... now I make an old experience again... copy + paste from one page can miss sometimes few but important symbols... similar from copy + paste from an pdf sheet into word... so copying it from github to ide might be cause some issues as well... anyhow, thx.
okay, now this helps a lot... thx
:_)
:-)
CAM Gerlach
@CAM-Gerlach
Oct 15 2018 22:48
Yup; always check, double-check and triple-check at and before the line that Spyder points out the error, since >99.9% of the time the error is somewhere in the code and not with Spyder. But it certainly helps having an extra pair of eyes since its easy to miss stuff with your own code. Best of luck with everything!
Felix
@felix4webscience
Oct 15 2018 23:35
@CAM-Gerlach thank you.