These are chat archives for spyder-ide/public

27th
Nov 2018
hilda34
@hilda34
Nov 27 2018 10:47
Hello
I installed spyder by typing the following command in the terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
installation was successful but an error occured
Error: Cask 'spyder' is unavailable: No Cask with this name exists.
Carlos Cordoba
@ccordoba12
Nov 27 2018 12:23

Error: Cask 'spyder' is unavailable: No Cask with this name exists.

That says it all: there's no longer a cask available for Spyder because we stopped distributing DMGs a long time ago

@hilda34, please use Anaconda instead
Khalil Al Hooti
@Khalilsqu
Nov 27 2018 13:47
@ShahabGaroosi , you might consider donating to the project if the company makes profit from using Spyder.!
Ingo von Borstel
@planetmaker
Nov 27 2018 22:18
Hello. I managed to close my iPython console, variable explorer and alike. Yet when I go to view->Panes-> ... they show as present. Yet I see no such window
I'm using spyder 3.2.8 with python 3.6
resetting to factory defaults helped... but would be nice to know how to restore that without killing all other settings
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 22:38
@planetmaker Try upgrading to Spyder 3.3.2, the current version, and see if that fixes the issue—I was unable to easily reproduce your problem at least on 3.3.1. If you need to reset your window layout, to the default, or one of our several built-in presents, you don't need to reset the full preferences; you can just go to View --> Window Layouts and then select either one of the preset options, or Reset to default on the current one. Finally, you can try switching to the pane via the keyboard with the shortcuts next to each pane, to see if that reveals them.
Ingo von Borstel
@planetmaker
Nov 27 2018 23:10
Neither of these things did bring back the console (except the factory reset). For this one, I unfortunately cannot easily upgrade, as it breaks my anaconda environment
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:12

as it breaks my anaconda environment

How so?

Ingo von Borstel
@planetmaker
Nov 27 2018 23:16
'break the anaconda environment' is maybe a bit harsh. But I had the experience that it changes the version of a number of packages. And when I now upgrade spyder, 'something' with the deps seems to go wrong which results in gtk issues, which especially show themselves by spyder's menu spacing going totally borked, reducing it to 0 and making menu text unreadable
and using the system's spyder install results in a wrong python version running in the console, so I have to use the one which I install in the anaconda environment
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:17
Spyder doesn't use GTK, it uses Qt, so I'm not sure how that's possible.
Ingo von Borstel
@planetmaker
Nov 27 2018 23:17
ok, maybe not gtk. But... symptom is the same
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:17
Regardless, I assume its due to Spyder 3.3+ requiring PyQt5 instead of PyQt4 that's been end of life for many years now, which may very likely be what's causing the issue in the first place. If something else still requires PyQt4, its easy to handle (especially with Spyder 3.3+), and a good practice regardless—just create a new environment for Spyder, install just it there and set your Python Interpreter in the Spyder preferences to the old one. We actually recommend that anyway, since it keeps your Spyder environment free from dependency issues due to other packages (which is the cause of many of the problems people report with it).
Basically it just boils down to
conda create -n name-your-new-env python=3.6
source activate name-your-new-env
conda install spyder
spyder
Ingo von Borstel
@planetmaker
Nov 27 2018 23:19
that's basically how I installed it. And then I installed a bunch of other stuff in that environment which I needed - which downgraded spyder to 3.2.8
https://paste.openttdcoop.org/prdizgy5c <-- this would happen when I update spyder
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:24
Right, but what I'm saying you should do is only install Spyder in its own clean environment, and install those packages you want to work with inside of Spyder consoles in another one or keep them in their current one, if they work, and remove Spyder). That's a good practice overall, to keep issues and dependency conflicts with one set of packages from messing with the other one, and its easy to switch environments in Spyder 3.3+ (under Preferences --> Python Interpereter); you can keep one copy of Spyder and use it with any Anaconda environments, other Python installs on your machine (including system Python), or even kernels started on remote machines over SSH, with full functionality, all at the same time in different Consoles if you wish. All you need to install is the new spyder-kernels package in any environment you want to work in (which has much more minimal dependencies), and you're set.
Ingo von Borstel
@planetmaker
Nov 27 2018 23:28
So that I understand it correctly: in Preferences -> Python Interpreter I select the python interpreter for python itself - or for the the one I want to use currently in the console - thus have to change it every time I want to work in a different anaconda environment?
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:30

this would happen when I update spyder

Thanks. I see you're mixing conda-forge packages with defaults ones, which is a recipe for the sorts of problems you're reporting since they aren't 100% binary compatible. That's another great reason to keep separate environment, one using only defaults packages, and one for the conda-forge ones; if you're going to use one or the other, use only one or the other in a given environment or you're likely to get problems. If you have to mix them for some reason (generally, specially on Linux its best to go all-conda-forge), installing via conda install -c defaults -c conda-forge will only pull the specific packages that defaults doesn't have, rather than the whole stack.

Ingo von Borstel
@planetmaker
Nov 27 2018 23:33
ah, interesting. I will try to separate that. I'm quite impassionate for one or the other. What should I go for when I have the choice?
conda-forge?
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:34

for the the one I want to use currently in the console

Yes, correct.

thus have to change it every time I want to work in a different anaconda environment?

Yes, but it remembers all the interpreters/environments you've previously used with it so you can just select your desired environment from a list, thus it should only take a few seconds to switch once you've used any given environment once. Also, you can always keep multiple consoles open from different environments and switch between them at will just like files in the Editor (or tabs in a web browser), and whichever console is the active tab will be the one that files/lines, etc are run in.

Ingo von Borstel
@planetmaker
Nov 27 2018 23:37
ok. Sounds like something I definitely should look at. Thank you!
Just some last question for now: is there a more convenient chat than the one I'm currently in which is a window on the website. That is: is this available via IRC, discord,... or some other method than webbrowser?
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:38

I'm quite impassionate for one or the other. What should I go for when I have the choice?

Go with all defaults if all your packages are available in defaults; otherwise go with all conda-forge; of course, you can always keep environments for each and switch between them at will. whichever one you choose, I recommend you "start fresh" with a new environment at this point with your desired packages since your current one is "contaiminated" with lots of one or the other. Often if a package is pure Python, and there's only one specific package on conda-forge that you need (with no non-defaults dependencies), you can install just that one in a defaults environment, but make sure to do conda install -c defaults -c conda-forge package-name-here so it doesn't grab the conda-forge version of the deps and potentially "dirty" your current env.

I assume Gitter has an "app" if you're on a mobile device.
Ingo von Borstel
@planetmaker
Nov 27 2018 23:40
Yupp. Generating a new environment is cheap and easy... :) I'm still somewhat in learning the handling of environments.
nah, I'm on desktop. I was more thinking of having backlogs for possibly reading-back when I hang around afk.
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:42
Its the same chat, we just embed it in our site. Alternatively, you could message us on Facebook, which I think goes through its own "app" on the phones, although response time is slow. You can also email our Google Group (I assume @ccordoba12 checks that one frequently), or message us on Twitter (although I don't monitor it as frequently as I should). The links to all of that are in the footer of tsite.
Ingo von Borstel
@planetmaker
Nov 27 2018 23:43
yeah, that's how I found this chat :)
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:44

I was more thinking of having backlogs for possibly reading-back when I hang around afk.

The chat on the Gitter site itself shows a full backlog (maybe not the embed version), and you can also search or filter it via the options in the left sidebar.

Ingo von Borstel
@planetmaker
Nov 27 2018 23:47
ok. I'm not familiar with this website / service so far. I shall see :) Thanks for your advice and time. Bedtime here now soonish
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:48

Its actually what's hosting this chat you're reading; I'm accessing it from their web UI rather than the site version actually.

Goodnight and good luck with Spyder!

Ingo von Borstel
@planetmaker
Nov 27 2018 23:49
yep, love it. It's excellent for all python stuff :)
CAM Gerlach
@CAM-Gerlach
Nov 27 2018 23:49
Thanks! <3