This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Are there any documentation for KDevelop Python?

Tags: None
(comma "," separated)
User avatar
int_ua
Registered Member
Posts
20
Karma
0
Is there any one person who uses KDevelop with Python venv? It's a very important feature of Python that is hard to set up in KDevelop.

Nothing useful on kdevelop.org

No mention of Python at https://docs.kde.org/trunk5/en/extragea ... index.html

viewtopic.php?f=218&t=123855 didn't help

https://apps.kde.org/en/kdev-python not helpful

https://github.com/KDE/kdev-python/blob ... /README#L1 empty

https://github.com/KDE/kdev-python/blob ... INSTALL#L1 not helpful

https://invent.kde.org/kdevelop/kdev-python just the same as the github, of course
graemep
Registered Member
Posts
6
Karma
0
OS
I have just started using Kdevelop for Python again.

In project > open configuration > Python settings I enter

/path/to/env/bin/python

I have only used it for Django projects so far so have been executing and debugging code outside Kdevelop, but autcomplete and linting works fine so far, apart from some imports showing up as "undefined"

Overall very nice
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi, yes, that is how it is meant to be used. You configure the venv's python interpreter as the python interpreter for the project, then KDevelop queries it for search paths. There isn't anything else to set up which I'm aware of.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]