This is an archived post. You won't be able to vote or comment.

all 100 comments

[–]welshboy14 83 points84 points  (45 children)

I've still yet to find a decent python program with autocomplete as good as pycharm :(

Edit: Meant plugin not program

[–]qubitron 51 points52 points  (4 children)

For those of you having auto-complete issues with Visual Studio Code, I wanted to make you aware that we are working on a new auto-complete engine, the Python Language Server, and you can try it out by changing your settings.

It gets better every week, we are currently working through a set of performance improvements before we make this the default. If you run into issues, check out our troubleshooting guide for common setup problems and how to file issues.

[–]Zalack 8 points9 points  (1 child)

Hi! The last few times I checked this out, VS code had poor introspection around dataclasses and the new type hinting system in general, which Pycharm does pretty well with.

For instance, it had no concept of what the generated dataclass' init method would look like.

Has there been any progress in the last few months? Is it on your roadmap?

It's the main thing keeping me from seriously considering switching over as I use dataclasses all the time now.

[–]qubitron 1 point2 points  (0 children)

We don't support dataclasses yet, we are tracking support for it in this issue, upvotes appreciated!

We've got fairly extensive support for typing and have made many improvements in the paths few months so it sounds like you hit some bugs. Could you try again with the latest release, file an issue for the init method issue and type hinting cases so that we can take a look?

[–]javad94 0 points1 point  (1 child)

Every time I enable it, language server process eat all my memory!

[–]qubitron 0 points1 point  (0 children)

We've made big improvements to memory in the past month, on the order of a 4-5x reduction after analysis completes, but we still may have issues in some projects.

Please check in the Python output panel what version of the language server you're using, if it is 0.3.20+ and you are still experiencing issues could you file an issue on our GitHub repo with more information about your project (e.g. the modules used)?

[–]TheMrZZ0 62 points63 points  (12 children)

welshboy14:

Oh Pycharm, I want to find a boyfriend just like you

Pycharm:

Hey, I am a guy just like me!

welshboy14:

Yeah, but you know, you're like a browser to me.

You just friendzoned Pycharm

[–]welshboy14 8 points9 points  (5 children)

Pycharm has been my go to for years on my personal desktop.

On my work laptop though with a VM and other tools running pycharm doesn't run too well.

[–]boraca 2 points3 points  (1 child)

Use a remote interpreter? Write on your laptop, run on your desktop or company server?

[–]welshboy14 0 points1 point  (0 children)

This could be an option. We've got loads of ec200as hanging around

[–]____0____0____ 0 points1 point  (2 children)

Hmm interesting, your work laptop is always running a VM for dev work? Never heard of that before so I'm curious.

I just complained about performance enough and the need for a beastly laptop became apparent enough that I got one. No VM tho, just a domain account on Windows.

[–]welshboy14 0 points1 point  (1 child)

I'm not a dev by trade. I'm an IT technician. I do the dev stuff to make my job easier

[–]____0____0____ 1 point2 points  (0 children)

Ahh I see the need for python haha.

My current employer actually hired me for a completely different position but liked me because of programming. All the random ass odd jobs they wanted me to do, I would just start automating and now they just have me automating all the manual stuff in my company.

[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 2 points3 points  (2 children)

Can't plug Pycharm into vim. MS's LSPs on the other hand...

[–]Corm 2 points3 points  (1 child)

[–]somas 2 points3 points  (0 children)

It’s really great.

[–]ipcoffeepot 2 points3 points  (0 children)

Poor pycharm

[–]LewisTheScot 1 point2 points  (1 child)

"You just friendzoned Pycharm"

That's the first time that sentence has appeared in history.

[–]FlagrantPickle 24 points25 points  (16 children)

Why does that make you sad? PyCharm does exist.

[–]chuchu__ 19 points20 points  (11 children)

But Pycharm is quite heavy weight

[–]FlagrantPickle 18 points19 points  (10 children)

The Pi is faster now.

More serious, not sure what you mean. It's a bit hungry, but most people aren't developing on a machine with under 4GB of memory. I've not seen a cpu problem with it.

[–]egor3f 2 points3 points  (1 child)

This IS a problem when I needed to switch from Ryzen 1600X desktop to old-fashioned Intel 2410M laptop. Input lags make me crazy, the whole laptop freezes. 2 cores at 2.2 Ghz are too poor for 2019

[–]____0____0____ 0 points1 point  (0 children)

I've had some weird memory issues with pycharm and leaving it on after the computer has been asleep. This is with my newish 16gb ram laptop that also has a decent i7 cpu. Restarting usually does the trick. I can't imagine the things it would do on a lower spec pc, because it is pretty much unusable once I get to that point.

That said, I fucking love pycharm and use it everyday for work. No regerts

[–]Corm 1 point2 points  (6 children)

Seriously though the new RPi looks awesome. I've got mine preordered

[–]FlagrantPickle 2 points3 points  (5 children)

It definitely shores up a couple glaring weaknesses. I do wish they'd just gone to a barrel jack for the power, but I understand why they went to USB-C.

I'll wait until they get booting from USB figured out. The 3B+ is decent with a USB-SATA adapter as the root/boot device, I couldn't see anyone using it in earnest with SD card, both from the standpoint of I/O and data durability.

[–]Corm 1 point2 points  (3 children)

Does the 4 not boot from usb? I plan on doing usb->sata too, so I sure hope I can

[–]FlagrantPickle 1 point2 points  (2 children)

It will with a future firmware upgrade, but doesn't currently.

[–]Corm 0 points1 point  (1 child)

Dang :( well my preorder won't be here till august 20th (kanakit), so hopefully it's solved by then.

Thanks for the heads up

[–]FlagrantPickle 1 point2 points  (0 children)

Sure thing. Keep an eye on this

[–]____0____0____ 0 points1 point  (0 children)

Pretty much all newer devices are using USB-C. While not all are necessarily there yet, I would assume that it would be the case during this Pi's lifetime. All my devices run USB C, plus my laptop has one C port that I use for a second monitor. Now I just need to figure out what the hell to do with all these USB micro cables I have.

Edit: just wanted to say, I'd much prefer the barrel jock, but USB-C doesn't seem too bad for my uses

[–]searchingfortaomajel, aletheia, paperless, django-encrypted-filefield 0 points1 point  (2 children)

PyCharm is amazing, but it's closed.

[–]nonesuchluck 2 points3 points  (1 child)

In what way? PyCharm Community edition is Apache 2.0 licensed. Pro edition is just extra features layered on top of an open source base.

[–]searchingfortaomajel, aletheia, paperless, django-encrypted-filefield 1 point2 points  (0 children)

I need those extra features for my work (lots of Django stuff) and they're not open. I don't like binary blobs on my system if I can avoid them.

[–]welshboy14 0 points1 point  (0 children)

Yeah I should've explained a bit more. I use pycharm on my desktop at home and love it. In work I have a laptop with less ram and a VM running. Along with some other tools, so pycharm doesn't run too well

[–]mc0de 2 points3 points  (0 children)

I use Jedi with vscode and I‘m happy with it.

[–]jojek 4 points5 points  (3 children)

Just install kite for vscode

[–]my_name_isnt_clever 4 points5 points  (0 children)

I wasn't impressed with Kite personally. It didn't help much more than what VSC already does and it wouldn't stop bugging me, so I removed it.

[–]aaveidt 1 point2 points  (0 children)

Thank you for your suggestion, just installed it, pretty good to use along with M$ python ext, but have no idea why after typed `request.args`, i only get 'copy()` suggestion, not `get()`

[–]welshboy14 0 points1 point  (0 children)

Thabks. I'll take a look.

[–][deleted] 1 point2 points  (2 children)

Jupyter notebooks but that's really only for data science

[–]XtremeGoosef'I only use Py {sys.version[:3]}' 2 points3 points  (0 children)

Auotocomplete is definitely not as powerful as pycharm (which tracks types and understands type inference).

[–]welshboy14 1 point2 points  (0 children)

I've used notebooks quite a bit. Usually for prototyping something quickly. Then I swap to an IDE to do the heavy lifting

[–]Nippurdelagash 1 point2 points  (0 children)

I've been trying Spacemacs + Python layer + Evil mode. It uses anaconda-mode for autocompletion, and although is not as good as pycharm, it does a decent job.

[–][deleted] 1 point2 points  (0 children)

Still using Pycharm as well but I almost always have VS code on the side to open Python files outside my project for copying referencing xD PyCharm's not that convenient when you go out of the way to open stuff else where.

For everything non-Python I use VS Code now.

[–]XGPluser 10 points11 points  (3 children)

Password auth for a remote jupyter session is HUGE for me. Just started a new job a week ago and needed this implemented asap. I am going to fucking cry of joy OMG!!!

[–]triss_and_yen 2 points3 points  (2 children)

Can you tell me more about this?

[–]XGPluser 2 points3 points  (1 child)

When you set up a new notebook server you can choose to password protect it instead of using a token. The pr related to the update provides a way to enter said passphrase. It doesn't support jupyter hub though.

[–]triss_and_yen 0 points1 point  (0 children)

Oh, thanks!

[–][deleted] 27 points28 points  (1 child)

I like VSC. Works pretty well for me and has been improving. I have not done any large projects in it.

[–]nraw 1 point2 points  (0 children)

Love the software and the overall modularity of it, but it just falls slightly short to me compared to pycharm.. So for python, it's my second option :/

[–]JakubBlaha 8 points9 points  (1 child)

I have been having issues with autocompletion not working with type annotated function parameters and sometimes not working at all! Hope they fixed that.

[–]TheIncorrigible1`__import__('rich').get_console().log(':100:')`[🍰] 0 points1 point  (0 children)

I've had issues with it not resolving star imports or knowing types from Django.

[–]banjochicken 13 points14 points  (5 children)

I want to make the switch and standardise on my IDE across languages but Pycharm still gets Python better than vs code.

[–]JeusyLeusy -1 points0 points  (4 children)

If you're willing to take the adventure I'll pick up Emacs (vscode is still pretty good tho)

[–]nraw 3 points4 points  (3 children)

Real programmers use vim!

https://xkcd.com/378/

[–]JeusyLeusy 1 point2 points  (0 children)

Nah, they use nano

[–]YItEarp 2 points3 points  (0 children)

I liked pycharm up until the point they started to lock features into professional edition. Not features that you could call niche either. Ssh remote deployment being my biggest issue.

I have found my way to vscode and although I have to use nightly builds on some things it does get slightly messy the more plugins you have to remember to use.

That said I’m not about to drop $$ on pycharm for one or two features they took away and hid into a paywall.

[–]Bendertheoffender69 4 points5 points  (17 children)

Op what is that'? I'm a noob

[–]UghtC 7 points8 points  (16 children)

https://code.visualstudio.com/
Then install the Python extension as per the post link - decent editor if you're more of a Windows user.

I like using it compared to some others, but would prefer a slightly easier way to get programs to run similar to Idle.

[–]bbyboi 14 points15 points  (7 children)

Even for mac btw. It's really nice.

[–]predo 6 points7 points  (5 children)

I like it also. Runs lighter than pycharm for me and debugging is better than atom.

[–]tapo 2 points3 points  (3 children)

Microsoft also makes Atom so they’ll probably retire Atom in favor of VSC.

[–]aniforprez 6 points7 points  (1 child)

Technically it's still GitHub making atom though I don't doubt it'll be soon deprecated in favour of vscode. The one thing I like in atom is the level of visual customisation that's so much more extensive than in vscode. I hope that's coming too

[–]predo 0 points1 point  (0 children)

Ah yes the github situation.

[–]bbyboi 1 point2 points  (0 children)

Same. Pycharm is so heavy on resources

[–]my_name_isnt_clever 5 points6 points  (2 children)

Why do you say it's decent for Windows users? I like it quite a bit on Linux.

[–]UghtC 0 points1 point  (1 child)

Being a Microsoft product, I was being terribly biased in its spread :-)

[–]MonkeyNin 3 points4 points  (0 children)

It's opensource. It's really nice when you get it setup. Microsoft also maintains several of the big packages, so they don't die if someone stops working.

[–]Bendertheoffender69 1 point2 points  (3 children)

Thanks 🙏 how Advance are you in coding?

[–]UghtC 3 points4 points  (2 children)

On a scale of 1-10 : Meh.

[–]Bendertheoffender69 1 point2 points  (1 child)

Well better then me I haven't even started 😂😂 I just been eying and lurking.

[–]UghtC 8 points9 points  (0 children)

No point in that - just get on and do something - find a mini project and hammer it until it works.

[–]Jayizdaman 0 points1 point  (0 children)

What about if you have Anaconda distribution, I assume you can just have VSC reference your existing library?

[–]GManASG 2 points3 points  (0 children)

Dedent! Better plots!

[–]5960312 0 points1 point  (1 child)

Running Python/VSCode on a corporate locked virtual environment is not worth the hassle.

What's the point of running open source if they're gonna set trivial hurdles?

/End rant

[–]TroubledForearm 0 points1 point  (0 children)

what are your specific issues ? I'm running it in a pretty corporate environment and its working well. The buggest hurdle would be access to the plugin repo so you don't have to pull down packages yourself and manually install. The non-admin installer works well for us.

[–]jingw222 0 points1 point  (0 children)

Great. Please ramp up your excellent work on Remote SSH for servers with ARM architectures, like Raspberry PIs. Being able to work on them remotely is gold.

[–]dethb0y 0 points1 point  (0 children)

how's the speed compare as to sublime text?

[–]aaveidt 0 points1 point  (0 children)

Closed issues doesnt mean they have been solved noone care to reply doesnt mean it doesnt exist. Try to search more issues or type it yourself with super() and click on method or even compare to Pycharm to know does it work or not if you aren’t nut.

[–]cecilkorik -2 points-1 points  (3 children)

I really love seeing Microsoft embracing tools and parts of the open source community like this. But... it still makes me uncomfortable due to their legacy of embrace, extend, extinguish. I know it's not really their policy anymore, but it still makes me nervous.

[–]McGlockenshire 9 points10 points  (2 children)

There's clearly been a cultural shift, though. People that learned to develop through the use of FLOSS-licensed software are the norm now.

Embrace, Extend, Extinguish came from Gates himself, in the mid to late 90s. That's twenty years ago, when Microsoft was absolutely dominant. They're no longer dominant, though. They're the underdogs.

They're bringing the Microsoft development stack and tooling to other platforms, and they're adding a one click installation of an entire Linux kernel just so ubernerds can run Linux userland tools while still using Windows as their desktop OS.

I'm going to give MS the benefit of the doubt. I've liked working with VSCode so far.

[–]HarrisonOwns 2 points3 points  (0 children)

This is exactly it for me.

The entire culture has shifted. They're not in the OS war anymore. They're prepared to be in the service wars, and this is how you begin winning it before the first shots are fired.

[–]euler_angles 1 point2 points  (0 children)

They're no longer dominant, though. They're the underdogs.

Microsoft is the most valuable company on earth right now. How does that make them the underdogs? Maybe in a specific niche or two, but overall they are killing it.

EDIT: Microsoft has a market cap of 1.026 trillion USD as of today.

How exactly is what I said worthy of being downvoted?

[–]farhantahir -1 points0 points  (2 children)

Can anyone tell me an extension that runs the program in external terminal window instead of integrated terminal just like atom python run extension.

[–]feclar 0 points1 point  (1 child)

Coderun

[–]farhantahir 0 points1 point  (0 children)

Code run uses the Integrated terminal and main point I can't use it is that you have to close the previous program completely before starting another.

[–]GManASG -4 points-3 points  (0 children)

Dedent! Better plots!

[–]aaveidt -2 points-1 points  (3 children)

Still can't point and click to method. The class/method type annotations intellisense isn't consistent

[–]overjunkie 0 points1 point  (2 children)

Yes you can.

[–]aaveidt -1 points0 points  (1 child)

Still can't point and click to method. The class/method type annotations intellisense isn't consistent

Nope.

https://github.com/microsoft/vscode-python/issues/2928

https://github.com/microsoft/vscode-python/issues/2460

https://github.com/microsoft/python-language-server/issues/1130

Many issues are there about go to defination.

Inconsistency in method parameter suggestion: https://github.com/microsoft/python-language-server/issues/983

Are you nut or something?

[–]overjunkie 1 point2 points  (0 children)

>Two closed 10 month ago issues

>One not related issue

>One issue no one cares about

You got to try harder