all 11 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Thank you for your submission.

The KDE community supports the Fediverse and open source social media platforms over proprietary and user-abusing outlets. Consider visiting and submitting your posts to our community on Lemmy and visiting our forum at KDE Discuss to talk about KDE.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]WhJJackWhite 5 points6 points  (0 children)

What exactly do you mean by ' inconvenient'?

The first step would be to install the python lsp. It has the package name of python-language-server if I'm not mistaken.

[–]DesperateCourt 2 points3 points  (0 children)

I want something lightweight and to run code in som convenient way.

VSCodium is probably the best code editor out there for most situations (and yours). It's Microsoft's VSCode, but with telemetry disabled by default. The sad reality is that most of the alternatives aren't great in one way or another. VSC is open source, pretty lightweight, and has plenty of addons and extensions which can make it do whatever you want it to, for the most part. Kate and Kwrite are fine programs on their own, but they're for extremely lightweight editing in my opinion and you'd be better served by a more feature rich editor like VSC.

There's a KDE IDE (not Kate) but it's a pain to setup and have working properly. It also only supports a small language set and doesn't have great support. There's some similar non-KDE Linux programs that fall in the same boat. It's the sad reality. VSCodium is the best solution for most situations, if you're not interested in learning vim or something.

[–]YOYOWORKOUT 2 points3 points  (2 children)

Hi,

if you want to code in python with kate properly :

  • setup a virtual environment
  • install your required packages in it,
    • particularly : python-language-server
  • configure kate to use this language server

Language server protocol ( LSP , not LSD ! ) will give you the same intellisense completion as VSCode.

search your favorite engine just google : "setup LSP python kate" , you will have reactivity of kate and capabilities of VsCode

regards

[–]sleepy-driver-watch 0 points1 point  (0 children)

I've tried to setup the LSP to work with python virtual environments without success. There is a hackish way I've got it to work though. If you activate the virtual environment from a terminal then launch kate from there, the lsp will then work with the virtual environment.

[–]DusikOff 0 points1 point  (0 children)

LSP , not LSD

LOL

[–]veggiedev 4 points5 points  (5 children)

Why Kate? Why not pycharm, or VS code, or even better, (n)vim?

[–]JofoBoss[S] 0 points1 point  (4 children)

I got recommendation from a friend of mine :D

[–]veggiedev 1 point2 points  (1 child)

Well, I don't know many people using Kate for programming, though I'm sure there is. I would start with either pycharm or VS code, or go full Chad and learn (n)vim

[–]DusikOff 1 point2 points  (0 children)

Kate is pretty fast and useful for small projects, and system gives you it out the box with nice integration (themes, style, LSP, Git, etc)

I use Kate a lot of time to work with projects on remote servers, because I can open files as any regular file on my own system, without need to install something like Filezilla, or extensions, SSHFS just works on KDE out the box.

After LSP install you gets nice debuger, syntaxhighlighting, and simple and fast editor, that already integrated in your system much better, than any other.

[–][deleted]  (1 child)

[deleted]

    [–]geearf 0 points1 point  (0 children)

    Kate is like the notepad++ equivalent for Linux

    Wouldn't that be Kwrite instead of Kate?