These are chat archives for spyder-ide/public

22nd
Jan 2019
Giovanni B.
@lacasadiletizia_twitter
Jan 22 10:23
Did you know if there is any issue with Spyder in Ubuntu 16.04
time to time the system is freezed by Spyder
KAMAL DEEP
@KAMALDEEP9728_twitter
Jan 22 10:56
HOW CAN I INSTALL CROSS_VALIDATION LIBRARY IN MY LAPTOP
Manuel Martinez
@manmartgarc
Jan 22 13:21
Hi spydey friends. Will I able to use the upcoming Spyder 4 without upgrading to Python 3.7x?
Jitse Niesen
@jitseniesen
Jan 22 13:30
@manmartgarc Yes, the Python version requirement has not changed (at least Python 3.4, or Python 2.7)
Giovanni B.
@lacasadiletizia_twitter
Jan 22 13:50
Hello Guy
could you someone tell me if there is some issue between Spyder 3.3.2 and ubuntu 16.04
because it freeze very often the OS and we need to reboot
CAM Gerlach
@CAM-Gerlach
Jan 22 15:11
@lacasadiletizia_twitter Since Spyder is only a pure Python program and doesn't have direct access to OS-level resources, it shouldn't be possible for it to freeze your entire machine. Rather, if that's happening only when Spyder is launched, either some issue with its graphical library (Qt) and something else on your machine is the culprit, or it is a package you're working with (e.g. perhaps something with GPU acceleration, like Tensorflow/Theano/Keras/PyTorch perhaps?) How did you install it? pip? Anaconda? What packages are you using in your work with it?
@KAMALDEEP9728_twitter Check out our guide to managing packages and environments with Spyder Pro tip: ALL CAPS is equivalent to "shouting" on the Internet, and should be avoided in polite settings).
CAM Gerlach
@CAM-Gerlach
Jan 22 15:17
@manmartgarc We might drop Python 3.4 in the near future with Spyder 4, since it is EOL in a couple months, and do plan to drop Python 2 support in Spyder 5, due out around Jan 2020. However, we should certainly support 3.6 for many more years, and presumably even 3.5 still for Spyder 5.
Manuel Martinez
@manmartgarc
Jan 22 15:31
Great news!
I've been looking for ways to run or call Stata .do files from Python, and I've found a couple solutions - however most of them work directly with Jupyter Notebooks and not necessarily from and IPython terminal. My dream is to be able to run a .do file from Spyder and have the results directly on the IPython terminal associated with that instance of Spyder. Is this something you guys have imagined before and attempted?
bcolsen
@bcolsen
Jan 22 17:00
@lacasadiletizia_twitter I run Spyder on 16.04 with nvidia and intel video driver and have had any hard crashes. This would have to be a problem with the qt tool kit on your system.
pchandureddy77
@pchandureddy77
Jan 22 18:11
i am trying to install spyder with anaconda but showing error
CAM Gerlach
@CAM-Gerlach
Jan 22 19:34
@lacasadiletizia_twitter To try to fix that, try updating your graphics drivers, switching off either the Intel or the Nvidia GPU and seeing if it works with the other, doing conda install pyopengl, and switching to a different version of Qt (check with conda list qt; if you have 5.6.x run conda install pyqt=5.9, and for 5.9 run conda install pyqt=5.6; if you don't have Anaconda try using that instead).
CAM Gerlach
@CAM-Gerlach
Jan 22 19:41
@pchandureddy77 Spyder is already installed by default with Anaconda; there's no need to install it. It looks like you're trying to launch it from Anaconda Navigator, and Navigator is running into a problem on its side (looks like ContinuumIO/anaconda-issues#10156 ) which doesn't have anything to do with Spyder. You can try updating Navigator (conda update anaconda-navigator from the Anaconda prompt) but on Windows there's rarely any reason to use it to launch Spyder, since its far quicker to just use the Start menu shortcut for Spyder directly. You can also launch it from the Anaconda prompt by simply typing spyder.
CAM Gerlach
@CAM-Gerlach
Jan 22 19:54
@manmartgarc Unfortunately none of us, and relatively few of our average users use Stata, so we don't have anything bespoke implemented. However, searching on Google and Stack Overflow suggests a few simple ways to call a .do file from within a normal Python script. If you run that script or call it as a function in Spyder, the .do should be run. The bonus of this approach is that it should work in any Python interpreter, not just from within Spyder, so your workflow is reusable and reproducible. If you want a way to open a Stata file in Spyder, edit it, and run it directly, you could probably write a simple Spyder plugin that would add a command to the menu that would execute the same automatically for the current file; in Spyder 4 (due out soon) you will be able to designate a specific script as the "main" one for each project that can be run at any time via custom shortcut; you could make that a Python wrapper script that ran your Stata do files.
Manuel Martinez
@manmartgarc
Jan 22 20:42
I see, thank you for the info.
Giovanni B.
@lacasadiletizia_twitter
Jan 22 20:59
@CAM-Gerlach Tanks for the help. I'm not the actual user of Spyder and i don't know the software but probably i could try to replace the actual video card that is an AMD with a Nvidia installing the proper driver? This could fix the issue? Fot the moment my collegue is using Spyder 3.3.2 with Anaconda
CAM Gerlach
@CAM-Gerlach
Jan 22 21:16
@lacasadiletizia_twitter I'm not sure; it might work but I'm not sure; the problem lies well down the stack from Spyder itself. Try the above suggestions first (updating your OS and drivers, installing pyopengl, switching Qt versions, etc).
Giovanni B.
@lacasadiletizia_twitter
Jan 22 22:25
@CAM-Gerlach The System is fully updated, and i don't think there is any specific driver for the current videocard. From what i remember is an old AMD Radeon (more or less 10 years old) but i can try the other step you told me. Is not clair for me if i have to switch QT version. After i'running i.e q.t version 5.6 i have to upgrade? or downgrade?
CAM Gerlach
@CAM-Gerlach
Jan 22 23:12

The System is fully updated, and i don't think there is any specific driver for the current videocard.

You have to have some sort of driver; if you don't and its falling back on something generic, ancient, etc. that could explain the problems. If you type jupyter qtconsole at the Anaconda prompt, do you get a working copy of the QtConsole GUI console (the same one that powers Spyder's Console)?

Is not clair for me if i have to switch QT version. After i'running i.e q.t version 5.6 i have to upgrade? or downgrade?

  1. Check your version of qt with conda list qt
  2. Install the version of Qt you don't have currently:
    2a. If the version number next to qt and pyqt is 5.6.[something], run conda install pyqt=5.9 qt=5.9
    2b. If the version number next to qt and pyqt is 5.9.[something], run conda install pyqt=5.6 qt=5.6
  3. Try Spyder again