From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AE/FGKubhmLE7gAAbAwnHQ (envelope-from ) for ; Thu, 19 May 2022 21:34:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kEqzF6ubhmJOcgEAG6o9tA (envelope-from ) for ; Thu, 19 May 2022 21:34:03 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA6CA23593 for ; Thu, 19 May 2022 21:34:02 +0200 (CEST) Received: from localhost ([::1]:33412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrluL-0001sC-A4 for larch@yhetil.org; Thu, 19 May 2022 15:34:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrljA-0001YR-Su for emacs-orgmode@gnu.org; Thu, 19 May 2022 15:22:28 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:40720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrlj7-0007YP-CN for emacs-orgmode@gnu.org; Thu, 19 May 2022 15:22:27 -0400 Received: by mail-pg1-x530.google.com with SMTP id x12so5886593pgj.7 for ; Thu, 19 May 2022 12:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20210112.gappssmtp.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ph7mlMnh7A8zCrEc8xqapWgQewCnX5vNb2F2TR3GMZY=; b=BlTddgqF4tgUjKw/oOsmzF62PWItPluPyC2RN09bFUhke+4fgYr1n9gHLu4ueuf/iC f8yIUYRuhvpj3VMo57whN+EBe09PDhavNGM50T3sYM+D8kN9mHtBZGgnBKm29zI8GkiC wMjS0qce+H3YHUmY8WwTuXvgrHiCd2qa2uLVKUeGtl4jm9DQyw3sLUjs4Qm2M0pH+m5G J8rCxJDVcqKDcWhRNRy+jxygOLs5wJbfy7uApaHuiN+HikAdSXqfIBYRdWZRnMis+h0u PMzQKuuOmANldwuPhXm5RA5l5mmedOUCtzLGUz+6iYSDc7BgUc9GXgm3ySQFqosPI94J Rj4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ph7mlMnh7A8zCrEc8xqapWgQewCnX5vNb2F2TR3GMZY=; b=Ak4T59dshUFMMtTv7pz/jgRNxILUaqh1RGgpOzhAk/hqnnWG/atzWftVfUXm9bJ60l /ebyjyDrdGScLPNOX4vr+R8axGL9x4YJGhQUPs0sb0Uivk3ibNRrO7yf2MyeYIJ2zJKc VwFKVr2g2kS3fVff4DqcW8az0WRLRY0/p8fwByaNTkDPzalZoyGdn3mQ74U5pViTvLCh n+utd+nq20NIR8KVsi6Y66Om3Y80h1FSVMBoaMZ1Oxr+xSyfQ4hte0H9oOewJYq328Gr r6kkpIsRinaidSm3S251OWYs7tOvRCMzXsejn64VXNvIbYHCjU8rv5rbUpPpXhHNp2b9 Ugpg== X-Gm-Message-State: AOAM532Bv8g5k0AFWJYmSf6TDSZs2BzrT9qU/j1OO+wNRcCYJRSMSLsI VpxnT8gQZYh+OZ+vBKc5jdAUVw== X-Google-Smtp-Source: ABdhPJyWOXJJTbx6VKNkPod9yOq/VZ7cLDyCbQIwyH+dEceBugh5eMc6eINypscigtW//SXBumyjLA== X-Received: by 2002:a63:5fcf:0:b0:3f6:298d:e2ea with SMTP id t198-20020a635fcf000000b003f6298de2eamr5285511pgb.561.1652988142171; Thu, 19 May 2022 12:22:22 -0700 (PDT) Received: from smtpclient.apple (mortgage.haas.berkeley.edu. [128.32.75.82]) by smtp.gmail.com with ESMTPSA id a23-20020a17090a6d9700b001dbe7ccdd4dsm189972pjk.10.2022.05.19.12.22.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2022 12:22:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: Trouble producing nicely aligned org tables from emacs-jupyter code blocks using latest org version From: "Richard H. Stanton" In-Reply-To: Date: Thu, 19 May 2022 12:22:20 -0700 Cc: John Kitchin , orgmode Content-Transfer-Encoding: quoted-printable Message-Id: References: <09EF74F5-8C39-4773-9407-E65A46E2FE3B@berkeley.edu> <87leux4p8t.fsf@localhost> To: Ihor Radchenko X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=rhstanton@berkeley.edu; helo=mail-pg1-x530.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652988843; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ph7mlMnh7A8zCrEc8xqapWgQewCnX5vNb2F2TR3GMZY=; b=fNdL94sv5k2ggl29mDXOz1PBhtFme+sFLlcHuaNA7CIypK8RfSizavQNxRXrFOKfG7UlZ4 pnuw1ywcRMjIRJHg79iSugExzyB4gzpxPy0hRu94wlBv5jIf+7/LMb1u9/iwyYBlf3PskJ gD8RXcWE33JS3PIrjmTLmT/Qz/zWm+kxMuSayiUX+tZAJcF4T3qa/Og1xgQVpCRpsrlbfh efmuE8txYtTv9+RBUFZxSfnlzoadHd2ZW3cfknB/X0r5XatyYdKEfrcmQuTlf/P3BPbs/5 FAR257ZXoVKTpF/83VTiSgtKFLOpa09oY6Kiar+eLcO0gNtYBl9XA5KZ5jV/VQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652988843; a=rsa-sha256; cv=none; b=BD6+NhGna3WviaY1/FVqeqlUFMo7gBKqx7833ytQVp3Km+T2gFOnE7/k7HXHvpQE/BpCLC 4Fgf/ClO+yuL1wldlTTd63oZgkbBExUzxj2bL8thdeODVHDeGLDcwjLPs3310/wfGreWCb 16D+AR7O3aK0QkVTpat+tNjiF6h5fxTjkvtvSjHlYGczVY9dv7VArAIfEG3RFYnh+1VpDW Yhm7S0FDj+IlgQy2RQh5bV+ZSgXKfNwS6upM2CzdIG6QFjtiJtUBIRb5VRliIHt1aNknTE ngYCIJKDyoLWZBWCVD4URmTtUjPWOlXOiSNiq8yaNCNZoOtwYsdeYAIWa2xWmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=BlTddgqF; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=BlTddgqF; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AA6CA23593 X-Spam-Score: -1.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: g2G5UGaQEQaD Here=E2=80=99s a simple init.el that shows the problem (most of it is = just boilerplate code to use straight.el to manage packages, and you may = need to edit the python executable path). ------------------- ;;; straight (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" = user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously = "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el= " 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) ;; Replace use-package with straight-use-package (straight-use-package 'use-package) (setq straight-use-package-by-default t) (setq use-package-verbose t) (straight-use-package 'use-package-ensure-system-package) ;;; Which org-mode to use? ; (straight-use-package '(org :type git :repo = "https://code.orgmode.org/bzg/org-mode.git")) (straight-use-package '(org :type built-in)) ;;; Find python executable (setq exec-path (append '("/Users/stanton/anaconda3/bin") exec-path)) (use-package org :after (jupyter) :straight t :config (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (jupyter . t)))) (use-package jupyter) ;; Make cursor more visible when you move a long distance (use-package beacon :config (beacon-mode 1)) =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94 Now execute the following source block and you=E2=80=99ll see the = misaligned table. #+begin_src jupyter-python :async yes :session py [['aaaaaaa', 'a'], None, ['b', 'b']] #+end_src Commenting out the last line of init.el, thus not loading the beacon = package, gets things to work OK. But so does changing which version of = org mode is loaded by commenting out one of the lines and uncommenting = the other, so this is not only about the beacon package. Best, Richard > On May 19, 2022, at 11:16 AM, Richard H. Stanton = wrote: >=20 > After a lot of bisecting my init.el to create the simplest possible = example that shows the problem, I found that removing the package beacon = makes everything work OK, both in sync and async mode. >=20 >=20 >=20 >> On May 19, 2022, at 6:37 AM, Ihor Radchenko = wrote: >>=20 >> Richard Stanton writes: >>=20 >>> A bit more experimenting shows that asynchronous execution is = actually a part of my original problem. By default, I have = jupyter-python blocks running asynchronously. In that case, the tables = don=E2=80=99t format quite right, as I noted. But if I add the header = ":async nil", the table comes out fine. Table formatting is OK in python = blocks with or without asynchronous execution.=20 >>=20 >> Can you also see the problem without using jupyter-python? >> A detailed recipe starting from emacs -Q would help (see >> https://orgmode.org/manual/Feedback.html) >>=20 >> Best, >> Ihor >=20