From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: Bug: ob-python: Lots of IndentationError [9.1.12 (release_9.1.12-728-ge8a4f3 @ /Users/xcy/src/org-mode/lisp/)] Date: Mon, 07 May 2018 17:04:30 +0100 Message-ID: <878t8v78q9.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFicx-00070J-Bz for emacs-orgmode@gnu.org; Mon, 07 May 2018 12:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFict-0002Xe-B9 for emacs-orgmode@gnu.org; Mon, 07 May 2018 12:04:39 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:32872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFict-0002X3-4A for emacs-orgmode@gnu.org; Mon, 07 May 2018 12:04:35 -0400 Received: by mail-wr0-x230.google.com with SMTP id o4-v6so29297422wrm.0 for ; Mon, 07 May 2018 09:04:34 -0700 (PDT) In-Reply-To: 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.org@gnu.org Sender: "Emacs-orgmode" To: Xu Chunyang , emacs-orgmode@gnu.org Hi Chunyang, This bug was introduced by commit 1966d58b2, which =E2=80=9Cfixed=E2=80=9D = another problematic case of indentation. Because of issues like this, ob-python has never really worked reliably (in my experience) The only sensible way I can see to evaluate python code from emacs without hitting these kinds of errors is to use jupyter (formerly ipython). You might try the ob-ipython or ob-ein libraries and see if they work for you. (The latter is part of ein, which provides lots of integration emacs <-> jupyter, and not only for org-babel). Disclaimer: I haven=CA=BCt used either of these libraries personally, so I don=CA=BCt k= now how well they will work for you. --=20 Aaron Ecay