emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use Org with Python as an IDE?


From: Dr. Arne Babenhauserheide
Subject: Re: How to use Org with Python as an IDE?
Date: Tue, 07 Sep 2021 00:20:17 +0200
User-agent: mu4e 1.6.5; emacs 27.2

edgar@openmail.cc writes:

> I am very sorry for wasting your precious time. This was very simple

It’s the finding that’s hard, not the setup.

> 1. Install (some are optional) python-language-server  
> jedi-language-server bash-language-server python-pylint  
> python-pydocstyle ccls python-pyls-black

You may also want to use flake8. That helps keep your code pythonic. I
don’t 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=432c5954109b#L346

#+begin_src javascript :tangle "mathe-ass.js" :exports none :comments link
…
#+end_src

Mind the :comments link. That allows getting changed code back into org
by running org-babel-detangle.

- org-babel-tangle creates your working codefile.
- hack in the codefile with full IDE support.
- org-babel-detangle gets your code back into org for better documentation.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]