From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: edgar@openmail.cc Newsgroups: gmane.emacs.orgmode,gmane.emacs.help Subject: Re: How to use Org with Python as an IDE? Date: Sun, 05 Sep 2021 01:03:12 +0000 Message-ID: <20210905010312.Horde.qSaJV-gSBfKINOKhvYgNygs@www.vfemail.net> References: <20210904222927.Horde.V5i-mHEy0_Bp2GCg4pqgGgO@www.vfemail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17072"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Horde Application Framework 5 Cc: emacs-orgmode@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Sep 05 03:04:31 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 1mMgaE-0004Hg-GH for geo-emacs-orgmode@m.gmane-mx.org; Sun, 05 Sep 2021 03:04:30 +0200 Original-Received: from localhost ([::1]:58580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMgaC-0002Qb-PC for geo-emacs-orgmode@m.gmane-mx.org; Sat, 04 Sep 2021 21:04:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMgZL-0002NZ-9p for emacs-orgmode@gnu.org; Sat, 04 Sep 2021 21:03:35 -0400 Original-Received: from smtp152.vfemail.net ([146.59.185.152]:46347) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1mMgZI-0000y9-6U for emacs-orgmode@gnu.org; Sat, 04 Sep 2021 21:03:35 -0400 Original-Received: (qmail 7472 invoked from network); 5 Sep 2021 01:03:30 +0000 Original-Received: from localhost (HELO freequeue.vfemail.net) () by smtpout.vfemail.net with ESMTPS (DHE-RSA-AES256-SHA encrypted); 5 Sep 2021 01:03:30 +0000 Original-Received: (qmail 54461 invoked from network); 5 Sep 2021 01:03:03 -0000 Original-Received: from localhost (HELO nl101-2.vfemail.net) (bmE=@127.0.0.1) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Sep 2021 01:03:03 -0000 Original-Received: (qmail 53975 invoked from network); 5 Sep 2021 01:02:46 -0000 Original-Received: by simscan 1.4.0 ppid: 53960, pid: 53973, t: 0.0133s scanners:none Original-Received: from unknown (HELO localhost) (ZWRnYXJAb3Blbm1haWwuY2M=@192.168.1.192) by nl101.vfemail.net with ESMTPA; 5 Sep 2021 01:02:46 -0000 In-Reply-To: <20210904222927.Horde.V5i-mHEy0_Bp2GCg4pqgGgO@www.vfemail.net> X-VFEmail-Originating-IP: 2a03:e600:100::23 X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Content-Disposition: inline Received-SPF: softfail client-ip=146.59.185.152; envelope-from=edgar@openmail.cc; helo=smtp152.vfemail.net X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, UNPARSEABLE_RELAY=0.001 autolearn=no 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:139733 gmane.emacs.help:132889 Archived-At: I am very sorry for wasting your precious time. This was very simple 1. Install (some are optional) python-language-server jedi-language-server bash-language-server python-pylint python-pydocstyle ccls python-pyls-black 2. Clone https://github.com/joaotavora/eglot 3. Add this to your .init.el or .emacs (require 'package) (package-initialize) (defun load-eglot-company () "Loads `eglot' and `company'" (eglot-ensure) (company-mode)) (add-hook 'python-mode-hook 'load-eglot-company) (use-package eglot :after prog-mode :load-path "~/.emacs.d/plugins/eglot" :config (add-hook 'c-mode-hook 'load-eglot-company) (add-hook 'c++-mode-hook 'load-eglot-company) (add-hook 'c-mode-common-hook 'load-eglot-company)) I can't believe that I can now be in the 21st century. Thanks to all the developers and the free software community!

Quoting edgar@openmail.cc:

Is there a current way to have Python (not iPython, Jupyter, Anaconda, Conda...) IDE in Emacs?

I sent the forwareded message to the Org (mode) list, because I am planning to use Org, but I am in a defeated state, and if I can get regular files with autocompletion, navigation and documentation, that would be great.

Thanks!

#+begin_src elisp
(org-version)
#+end_src

#+RESULTS:
: 9.3.7

#+begin_src elisp
(emacs-version)
#+end_src

#+RESULTS:
: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4)
:  of 2021-03-26

| python-jedi         | 0.18.0-2 |
| emacs-ctable        |  0.1.2-3 |
| emacs-deferred      |  0.5.1-2 |
| emacs-epc           |  0.1.1-4 |
| python-epc          |  0.0.5-3 |
| python-black        | 21.7b0-1 || python-flake8-black |  0.2.2-1 |


------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!