These are chat archives for spyder-ide/public

28th
Feb 2019
JamesChou2016
@JamesChou2016
Feb 28 02:58 UTC
@CAM-Gerlach Thanks for your reply! It did happen when I update PyQt to 5.12. Look forward the arrival of Spyder 3.3.4, thanks!
smanju
@smanju
Feb 28 06:19 UTC
hi
i am new to spyder
how to connect to local mongodb from spyder
CAM Gerlach
@CAM-Gerlach
Feb 28 06:23 UTC
@smanju Welcome to Spyder! Sorry, but I'm not sure how that's really a Snyder-specific question rather than a general Python one, since you'd connect to it in your code the same way as with any other Python interpreter. I'd suggest Googling it; there appear to be many resources out there about that.
Best of luck, and let us know if you have any questions about Spyder!
AvrilGZC
@AvrilGZC
Feb 28 06:57 UTC
image.png
Is that necessary to download Spyder3.3.3?
CAM Gerlach
@CAM-Gerlach
Feb 28 07:01 UTC
@AvrilGZC Its not strictly necessary per say, but it is highly recommended to get the latest bug fixes, compatibility updates and enhanced functionality and epxeriance. Along with a number of fixed bugs, Spyder 3.3.3 also brings along substantially more robust and capable environment/workspace save and load capabilities, for saving your session and restoring it later, as well as other smaller tweaks. If you installed it via Anaconda, you can update it via conda install spyder=3.3.3 in the Anaconda prompt.
AvrilGZC
@AvrilGZC
Feb 28 07:13 UTC
well when I installed Anaconda yeseterday, I updated by using 'conda update -all'..Spyder was updated to 3.3.3, but it cannot open from them
from then
So I just reinstalled anaconda and the version of Spyder is 3.3.2
CAM Gerlach
@CAM-Gerlach
Feb 28 07:15 UTC

it cannot open from them

What do you mean? How did you try to launch it? What happened, and what specific error did you receive?

We strongly recommend against conda update --all, as this could update your packages to versions that are not compatible with one another, and in turn effect Spyder. At most, you could update to the latest Anaconda version after it comes out with conda update anaconda, but even that has some amount of risk. Instead, you should update the individual packages that you need/want the new versions of, like e.g. pandas, scipy and spyder, for instance.
Try conda update spyder again now, and see if Spyder launches. If not, then please inform us of how you launched it, what happens when you try, and exactly what error message you get. Thanks!
Sushmitha Ramu
@sushmitha.ramu_gitlab
Feb 28 13:09 UTC
hi
CAM Gerlach
@CAM-Gerlach
Feb 28 15:21 UTC
Hello @sushmitha.ramu_gitlab , how can we help you with Spyder?
benji mandel
@BenjiMandel
Feb 28 16:43 UTC
Hi there!
Is there a posability for a dark theme in spyde ide of pyrhon?
CAM Gerlach
@CAM-Gerlach
Feb 28 17:19 UTC
@BenjiMandel Yes indeed. Spyder 4, our next version, has had a dark theme implemented for some time. It will be available in Spyder 4 Beta 2, due out soon, or you can try it out right now if you install a development version from Github.
Here's what a quick screenshot of what it looks like right now, complete with our new syntax highlighting theme based on One Dark)
image.png
Felipe_Ferrada
@faferrada_twitter
Feb 28 18:58 UTC
Hello, i am new with Spyder, anyone have a pdf to learn?
CAM Gerlach
@CAM-Gerlach
Feb 28 18:59 UTC
@faferrada_twitter Hey, check out our documentation to learn more.
Felipe_Ferrada
@faferrada_twitter
Feb 28 19:00 UTC
thank you @CAM-Gerlach !!
sangram das
@dassangram_gitlab
Feb 28 20:40 UTC
hey guyz basically i'm belong from mech branch..so i'm newly join to learn spyder..could any one help me out how to change the path of spyder..
CAM Gerlach
@CAM-Gerlach
Feb 28 21:29 UTC
@faferrada_twitter Thanks, and happy Spydering!
CAM Gerlach
@CAM-Gerlach
Feb 28 21:35 UTC

could any one help me out how to change the path of spyder..

@dassangram_gitlab Sorry, but I'm not sure which path you're referring to.

  • If you mean the path to the selected Python interpreter, you can do that under Preferences > Python interpreter > Use the following Python interpret.
  • If you mean the system PATH, you can edit that globally under Tools > Current user environment variables
  • If you are referring to the PYTHONPATH, you can do it with the PYTHONPATH Manager also under the Tools menu.
nelsonwcf
@nelsonwcf
Feb 28 21:48 UTC
Hi everyone. I just installed spyder 3.3.3 (windows 10) and it doesn't start anymore. Anyone having the same problem here?
CAM Gerlach
@CAM-Gerlach
Feb 28 21:49 UTC
@nelsonwcf By "anymore", do you mean it started previously? How are you launching it (shortcut, Navigator, command line)? How did you install it (Anaconda, something else)? What behavior or error message do you get when you try to start it?
There have been some reports of this, yes, if you look back a few messages, although I'm not sure its all the same issue.
nelsonwcf
@nelsonwcf
Feb 28 21:51 UTC
Hi. That would explain it. Just got my corporate computer reinstalled with Windows 10. Installed python 3.7.2 (tried 3.6.8 as well), installing spyder with pip again as I normally do. Go to command prompt and call spyder3. It starts to read something then it goes back to the command prompt. No process is loaded into task manager (spyder3 or python).
I never did that before but is there any kind of log I can look at?
nelsonwcf
@nelsonwcf
Feb 28 22:00 UTC
There. Reverted to Spyder 3.3.1 and it works again.
Now checking 3.3.2.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:01 UTC

installing spyder with pip

Unfortunately, while we provide fully functional pip wheels for those who choose to use them, unless your problem can be traced back to a problem with the code or packaging that we can reproduce on our end, due to limited resources we are unable to generally provide individual post-install user support for users installing via this method, as due to the complexity of Spyder's dependency stack it is for advanced users only who are able to solve these sorts of generally machine/environment-specific problems on their own (particularly common on Windows). Otherwise, we recommend you install Spyder with Anaconda or Miniconda (basically conda + Python) instead, as problems are much less frequent and usually easier to resolve. You are also welcome to try the detailed steps in our Spyder Troubleshooting Guide, specifically the Basic First Aid and Emergency CPR sections, which resolve the great majority of Spyder installation issues.

You can always download Spyder via this method and then tell it to use your existing non-Anaconda Python interpreter in its consoles, by setting the path to the python.exe you want to use under Preferences > Python interpreter > Use the following Python interpreter (so long as the working environment has spyder-kernels installed). Check out our guide to working with packages and envronments with Spyder for more on that.

nelsonwcf
@nelsonwcf
Feb 28 22:03 UTC
Well, I can't say anything for Anaconda but the same problem happens with Miniconda.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:03 UTC

There. Reverted to Spyder 3.3.1 and it works again.

If you can isolate the problem to a specific Spyder version, and its reproducible, then we may indeed be able to fix it. What versions of Qt and PyQt were you using with each version? Also, if you run set SPYDER_DEBUG=3 you may be able to see debug output the helps explain the problem.

nelsonwcf
@nelsonwcf
Feb 28 22:04 UTC
working on it.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:04 UTC

the same problem happens with Miniconda.

You installed Spyder via conda in Miniconda, correct? Just want to make sure.

nelsonwcf
@nelsonwcf
Feb 28 22:04 UTC
Yes.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:05 UTC
Okay thanks. You installed it in a clean environment and with no mix of pip and/or conda-forge/other channel packages, correct?
nelsonwcf
@nelsonwcf
Feb 28 22:06 UTC
Nope.
To be honest, while you guys say you don't support pip officially due to different environments, I never had a single problem with spyder in pip before (I had, however, many problems with Anaconda, reason I stopped using it).
But back to the problem at hand.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:10 UTC
We do support pip, we build wheels and everything and promptly fix any bugs with them, and several of our core developers install Spyder with pip (though typically in non-Windows environments). Its just that we usually aren't able provide individual help with most machine-specific install issues, since when they do happen they can be much trickier to resolve from our end due to the mechanics of pip as well as the much wider machine to machine variance that can affect it.
nelsonwcf
@nelsonwcf
Feb 28 22:21 UTC
Okay, Spyder 3.3.2 also works. Using PyQt5 5.9.2 and QtPy 1.6.0.
spyder-kernels 0.4.2
And after running pip install --upgrade spyder, spyder 3.3.3 works.
nelsonwcf
@nelsonwcf
Feb 28 22:26 UTC
And after upgrading PyQt5 to 5.9.2, it doesn't work anymore. :-)
So there you go.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:26 UTC

Using PyQt5 5.9.2

after upgrading PyQt5 to 5.9.2

?

nelsonwcf
@nelsonwcf
Feb 28 22:27 UTC
sorry, 5.12
(which also installed PyQt5-sip 4.19.14)
CAM Gerlach
@CAM-Gerlach
Feb 28 22:28 UTC
Spyder 3.3.3 still has some remaining issues with PyQt 5.12. 3.3.4, to be released shortly, will have full support (its already been added to the 3.x branch on Github, I believe).
nelsonwcf
@nelsonwcf
Feb 28 22:30 UTC
In this case, wouldn't be for the best to restrict spyder package (pip) dependencies to PyQT5 < 5.12?
for spyder 3.3.3?
I got pyQt5 5.12 when installing spyder 3.3.3 directly.
(letting pip handling all dependencies itself).
nelsonwcf
@nelsonwcf
Feb 28 22:40 UTC
In any case, thank you for the help.
CAM Gerlach
@CAM-Gerlach
Feb 28 22:40 UTC
@nelsonwcf Yes, that was a mistake. We thought it was compatible when we released it that our initial testing apparently missed; subsequent user reports and more throughout testing turned up the issues you mention. However, 3.3.4 should be released very soon with full support.
nelsonwcf
@nelsonwcf
Feb 28 22:41 UTC
Great! Thanks!
CAM Gerlach
@CAM-Gerlach
Feb 28 22:41 UTC
We've already fixed the main issue; there are just a few other things we wanted to resolve before the release.
Sorry for the issues and thanks for your help confirming them!