From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Dr. Arne Babenhauserheide" Newsgroups: gmane.emacs.orgmode,gmane.emacs.help Subject: Re: How to use Org with Python as an IDE? Date: Tue, 07 Sep 2021 00:20:17 +0200 Message-ID: <87k0jts5ny.fsf@web.de> References: <20210904222927.Horde.V5i-mHEy0_Bp2GCg4pqgGgO@www.vfemail.net> <20210905010312.Horde.qSaJV-gSBfKINOKhvYgNygs@www.vfemail.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4483"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.5; emacs 27.2 Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org To: edgar@openmail.cc Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Tue Sep 07 00:25:54 2021 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNN3q-0000xC-Iz for geo-emacs-orgmode@m.gmane-mx.org; Tue, 07 Sep 2021 00:25:54 +0200 Original-Received: from localhost ([::1]:47282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNN3o-0002tL-TX for geo-emacs-orgmode@m.gmane-mx.org; Mon, 06 Sep 2021 18:25:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNN3U-0002t8-Ij; Mon, 06 Sep 2021 18:25:32 -0400 Original-Received: from mout.web.de ([212.227.15.3]:58839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNN3S-0000zP-JZ; Mon, 06 Sep 2021 18:25:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1630967123; bh=HCvqzAI6EIG8BEdtOKrYbwXJeOXyvrPdJ/1qqErCbLc=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=Bi/QPN4uJxLAI0NGM/IpA9n0GHYxkHEglyOTMuiEo+mnZi5PvX5Vv4WRrxDveV49c WuhX3srVAW0u40wGwfjdMw6Ktz/a4hne4UzSMwrqYb11+twHxx8V81DGqvukDsBvpy dZKa0ZHsmjTBZ63K/P98Ai/vaCvfpmm8/Ef5f5nA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from fluss ([84.165.30.126]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LePBV-1mkczW2lnp-00q8yL; Tue, 07 Sep 2021 00:25:23 +0200 In-reply-to: <20210905010312.Horde.qSaJV-gSBfKINOKhvYgNygs@www.vfemail.net> X-Provags-ID: V03:K1:uuDqmH3ZV6jQo77PRTjcjycp5Gkhqpcd4oNDWWY0I+b4BEqT8HJ V+uUBLc0Hsgrgb+5L97q1lOHEQV/p0bNwkzosvv4LPjx7TrxqTfCOqkHPOr4go8PBaS72Fd KgBa5QPi/QpMR7DqeetA+SZlauGN1RmOiRCsZL2A7oPGP5SZT49h62OU0AuJFb0IdTzHLxx pATzmUItnU/63cvweBeAw== X-UI-Out-Filterresults: notjunk:1;V03:K0:dIJfVBnT4rI=:fO24pE94nZtJmsjcjcB1dx 8f2Ma3i16WSk/HhKGlh12Q34mexLuJ1LniwzqpLMwfmj3AD1mW1c3442LZ0yUL5I49vsUsQhX LVCEWx/lIp/0SL+lA/VJM0mg3OhN1bRth5aM/3FcJ499mOmK1EpuYZQLG2J6JdB2UdQLQubu7 fBLUjCLLl8dUzMNApypUrKtSReHE8PLFNOMPvjjHoT99zMSAwZGbUbNtCR28QZ0KpBJ61f2d6 ILMgsGe9vdErAY7KxFmvu2EQMMS1mNdup3nbbSuSMxwOIIxnvqFI8hKUL+KcVmJ784HV7G8m+ FPDCpc9/NZyD3v/ND41d10jmRRcdXtlic3O2dYnclJg6n7CvgJs3uM+6pl7Ap0ZigMOQHikez 9GMN/rWdBhqCmlnol76jQwPrjCzKj8eJOW1qCRbfM/J0wZNbTxz6b2JwZDnVHv2K+td/5RldM BRJkN9sV8b5ghgrPWAsHpey+Mf8ufQT5pn6K+AyU3iSNvbA+aXqxDm6J9sTWFOUCpJG0AMx0K vQFUhG34DMEclmX+sZy9x4AZefdRy5bzlFM01GYJIX85sA4SyYU2lxv07v1Lqt8M6kJWO8zPP n5wQ5nHJXk/sZgjQrP3QufrSJx8+gMcvprP52/4Bq69fC21fowPpQYm9wWQC2DdFk9mjJMZTG RrusQERiLptAvC32Jf/yhbRXfxRwYuCWfyi9sdgK41Yztiix/0prEYu7qw4+x5v/UybbqcBVi CyZQwOq/mHeTKqKO1eNWcOhMvcO3vAGOlayh4cFLO5zXIHvWEbw2iAag4nid0l2SGJ7GkftO Received-SPF: pass client-ip=212.227.15.3; envelope-from=arne_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:139752 gmane.emacs.help:132939 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable edgar@openmail.cc writes: > I am very sorry for wasting your precious time. This was very simple It=E2=80=99s the finding that=E2=80=99s hard, not the setup. > 1. Install (some are optional) python-language-server=20=20 > jedi-language-server bash-language-server python-pylint=20=20 > python-pydocstyle ccls python-pyls-black You may also want to use flake8. That helps keep your code pythonic. I don=E2=80=99t know how much of that is in pylint. What you may want to add is tangling and *detangling* of Python-codeblocks in org-mode so you can get a full Python-IDE with actually working files that you can merge back into org for documentation. As an example: https://hg.sr.ht/~arnebab/draketo/browse/anderes/mathe-ass.org?rev=3D432c59= 54109b#L346 #+begin_src javascript :tangle "mathe-ass.js" :exports none :comments link =E2=80=A6 #+end_src Mind the :comments link. That allows getting changed code back into org by running org-babel-detangle. =2D org-babel-tangle creates your working codefile. =2D hack in the codefile with full IDE support. =2D org-babel-detangle gets your code back into org for better documentatio= n. Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmE2lVIQHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD6w+DEACemru10xmkV6mzgPByP2XJTMIAS4f1Trsr 25sxFc66zM9+KMgGpGFSgzW0E1ic3EvYm7hMNZQLXG+nKjByy53sxS+xWE/ZhzlY ABZHdTA5falcthqAfZMNeKHon2yKwfc5CSynJbEoaPNfwiPMP76E5z16q+ZZHegs lqB6Kii+UrvTwYxgb/ro2qgkaEbMf3aJJvIXhLasrfQW9j9r6FlgqsmlAaCwE/zd NIGCFT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