These are chat archives for spyder-ide/public

31st
Mar 2019
Paul4936
@Paul4936
Mar 31 15:18
Hello.
When i define a class derived from another class(from the PyQt5, or another package),i got no autocomplete inside(i type "self." and got nothing except the variables and methods that i defined explicitly, so i got method init in that case, and none of the methods and variables of the parent class).I tried PyCharm, it gives me a bunch of methods and variables in autocompletion in the exact same code.But PyCharm isnt an option.
So question is: Is that autocomplete works as it designed or there is some problems with my installation?
CAM Gerlach
@CAM-Gerlach
Mar 31 17:18
@Paul4936 That is a general limitation of the current code completion architecture used in Spyder 3, if I understand you correctly, which is particularly likely to occur with functions and methods depending on non-Python code (PyQt, Numpy, Pandas, etc). However, in my testing, the brand-new infrastructure in Spyder 4 (the same as used by VSCode, Atom, etc.) is much more capable, and is able to complete method names and attributes inside instantiated objects like you're describing. If you're an experienced user and want to try it out, you can install Spyder 4 beta 2 when it comes out soon, or if you'd like to get your hands on it right away (there still are some bugs we're in the process of fixing) you can install a development build off Github. See our install guide for more details on how to do that.
Paul4936
@Paul4936
Mar 31 22:59
@CAM-Gerlach Thanks for your reply! Looks like new Spyder(4) will be even cooler than current one(3). I'll surely try Spyder 4b2 when it
comes out, but Beta 1 is so unusual(already tried today, if i get it right - it run whole code by Ctrl Enter(instead of selected code in Spyder 3) , so i was confused enough to install Spyder 3 back. I think i'll try to install Spyder 4 beta 1 via Anaconda instead of Trizen(packet manager for my Linux distribution).But since i don't sure what that problem was(a bug, just isn't yet implemented functionality(i mean it is still beta, and the first one if i got it right) or functional changes) - i dont know shall i install it back and try to reproduce it(to make bug report) or shouldn't.
CAM Gerlach
@CAM-Gerlach
Mar 31 23:53

it run whole code by Ctrl Enter(instead of selected code in Spyder 3)

No, it only runs a single cell, it just doesn't print the full contents like before by default (we're currently adding an enhancement that will print the cell name and line number in the function call). You can turn that off under Preferences > Editor > Advanced > Print cell contents to console

I think i'll try to install Spyder 4 beta 1 via Anaconda instead of Trizen(packet manager for my Linux distribution)

We strongly recommend this, since the versions that come with package managers are often out of date, have additional bugs, and don't integrate as well with the rest of a scientific Python distribution.

But since i don't sure what that problem was(

Other than the misunderstanding above, can you be specific about what problems you experianced so we can solve/help you solve them? Thanks.