From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GConFC9ShWKCCQAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 22:08:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6DISFC9ShWKODwEAauVa8A (envelope-from ) for ; Wed, 18 May 2022 22:08:15 +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 9ED67BE65 for ; Wed, 18 May 2022 22:08:13 +0200 (CEST) Received: from localhost ([::1]:52174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrPxs-0005MT-Oi for larch@yhetil.org; Wed, 18 May 2022 16:08:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrPvo-0005Hh-LY for emacs-orgmode@gnu.org; Wed, 18 May 2022 16:06:04 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:39917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrPvl-0004vV-E1 for emacs-orgmode@gnu.org; Wed, 18 May 2022 16:06:04 -0400 Received: by mail-pg1-x535.google.com with SMTP id a19so3098671pgw.6 for ; Wed, 18 May 2022 13:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20210112.gappssmtp.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=c9tW9AMhhcJQG9fi0j34sxWT3rYkG3o2/TY4omsNxQY=; b=ZlvEHE0fwttRThQCCK5mTi9qSsDh+hF8RBVP15ez/R56Tx/m7zl3YeoktzZF+oT4Li GO7ysMb0owxlYyuJaEBRHTDPGhgHq9BdAcyNm3pmN+1R5Sle2k1SYw+bgCFyZrjE2HPc GtEzNd0Zpsc+4NydaQZ6q9BWWA9PThP3QnGHAkItYOIudDpL/vdhWhfjm+qOVUlFi1Nn fh2fv9EbU145dXXRO/cUfZ1zREELxZhpPgtnRVdoU73yoLJjINwKt4B8CZiPKc6F1Hte FWm3hHIGEBE0K2KxJZ8p/F/qbhL5XGpnQWR3dFmpRjwsN/MSYJ7uzKMqUTt9SGwushE2 ekjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=c9tW9AMhhcJQG9fi0j34sxWT3rYkG3o2/TY4omsNxQY=; b=KucxfAbnM3pWH2aojLkRz3guKakYcT2E8iC9Qg53PPXm2HMc+ZbLsY+LQD56hLZw0q zQi7Yz8PRezNGH7152dtmLpwGIXYdUZ9BbnSvwRGTTAB6ZrB+2+hLro7H2LlkN0EPONZ jFyyl4ARhiyJ74bDE2ocykJJrrri4jF7LvVrch/QP3q0j+8MrVRFz8A+EJ6yOEk2hR2/ tl/FiwtRlNdRIqoUEpdVWgmc7aJPuYB2fPyoHrYryZLcbbxb0ovp9f36YjHdi8uR5vNC dmKCrg0xCXtMaP/ZNeA/F2vFsSqaFCKMuWZw7Q0VebcKS3MM+eycCAXNIRl+AOSe23ZM VLfQ== X-Gm-Message-State: AOAM532sQ48fDNwqZOyGYuM2BWLIXBnHmH/OcIV6ZlOjg3IiwZI1INcx v6nxUsUSoU6MxzHXbBdMzuGmSmEog3sfvg== X-Google-Smtp-Source: ABdhPJyp/mJhMiVlUNwYzQj73O1JPEvL4NswnS5NgjUbC4d1z93NbBHP+6ZbyHuYrAbBT+szbBk7xA== X-Received: by 2002:a63:1312:0:b0:3c1:bb54:f3de with SMTP id i18-20020a631312000000b003c1bb54f3demr934291pgl.306.1652904355951; Wed, 18 May 2022 13:05:55 -0700 (PDT) Received: from smtpclient.apple (157-131-222-176.fiber.dynamic.sonic.net. [157.131.222.176]) by smtp.gmail.com with ESMTPSA id o6-20020a170902bcc600b001617ffc6d25sm2073971pls.19.2022.05.18.13.05.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2022 13:05:55 -0700 (PDT) From: Richard Stanton Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Trouble producing nicely aligned org tables from emacs-jupyter code blocks using latest org version Message-Id: Date: Wed, 18 May 2022 13:05:53 -0700 To: orgmode X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=rhstanton@berkeley.edu; helo=mail-pg1-x535.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=1652904495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c9tW9AMhhcJQG9fi0j34sxWT3rYkG3o2/TY4omsNxQY=; b=V/drYZbipFFt6c0MZb1MwNlhG3eM3yQis1CvEwKsEstjhBym8XlNGpJb9Pe2nk5z33E5/r cIuaDZ0vJGy+DzUd88wn8hP039qJAaoSh+0cYd9YsbGQe7cSdxIIGjbQI67tk+4cRhOWTE 9Z/OdEnLsx3ZCrlf07pPjc0tAD/pZr3c1NZfFhHDrTAHbfaKp/iPySbQdTI84UagUxtHVM u5QSS1Qgo5pbbxwo8Qc4jCwYRNMEMsQ0K2FgBJ48iB7thtcbIsvE/SQUu5gurTQ1A9NpWg ItFMCj3O0y/Nx63y90ecZi1dK6fmt6DIEkMfkz80CkWvUUaIRGRpZePOX79J6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652904495; a=rsa-sha256; cv=none; b=rFB9Jf3zQRQPnloXTektJeh5hykAQY26AFhdezKlACk6rHTtm2iYVhwvmpMpIE1uZDgtuP lx0Q3fF86B10ISUVG9KWvG1sQGCWL0YW4kzOrOsDh9TImeLHFf71ncvyhoOiHwPC0jeuzU zNmrIfJZTjRHlFBa2ogf/VnMPLl6RN3Q8NE7zq9WB+s0xUjOaRqcsEJ37w+Ynn/NHp8KVS leKLkjeVM4hB1/3tfSsz6pHH9hXYzfXMkvkthAZHMgCbFZGq7iWhUDgimfUp6dJEfe93Qi uvui3M2MHIQ6nDSHaSg7yMBjApZM5OdhtTRsgrlBJrQo3wtipWsY8cnxLNYqbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=ZlvEHE0f; 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: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=ZlvEHE0f; 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: 9ED67BE65 X-Spam-Score: -3.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: g+2eBFcQ8cCI I=E2=80=99m running Emacs 28.1 under macOS 12.4 and want to create = tables from Python code blocks that can be exported to either LaTeX or = HTML. The simplest way to do this seems to be to generate the output as = an org table, and using the built-in version of org (9.4.6 = (9.4.6-798-g738759.dirty-elpaplus @ = /Users/stanton/.emacs.d/elpa/org-plus-contrib-20210929/)), this works = fine using either a python or emacs-jupyter code block: #+begin_src jupyter-python [ ["Wide a", "b", "c"], None, [1, 2, 3], [4, 5, 6], None, [7, 8, 9] ] #+end_src #+RESULTS: | Wide a | b | c | |--------+---+---| | 1 | 2 | 3 | | 4 | 5 | 6 | |--------+---+---| | 7 | 8 | 9 | #+begin_src python=20 return [ ["Wide a", "b", "c"], None, [1, 2, 3], [4, 5, 6], None, [7, 8, 9] ] #+end_src #+RESULTS: | Wide a | b | c | |--------+---+---| | 1 | 2 | 3 | | 4 | 5 | 6 | |--------+---+---| | 7 | 8 | 9 | To use the latest version of org, I change just two lines in my init.el = from (straight-use-package '(org :type built-in)) (straight-use-package '(org-contrib :type built-in)) to (straight-use-package '(org :type git :repo = "https://code.orgmode.org/bzg/org-mode.git")) (straight-use-package '(org-contrib :type git :repo = "https://git.sr.ht/~bzg/org-contrib=E2=80=9D)) Having done this, the python block still works fine, but the horizontal = lines in the jupyter-python block are no longer properly aligned with = the text: #+begin_src jupyter-python [ ["Wide a", "b", "c"], None, [1, 2, 3], [4, 5, 6], None, [7, 8, 9] ] #+end_src #+RESULTS: | Wide a | b | c | |---+---+---| | 1 | 2 | 3 | | 4 | 5 | 6 | |---+---+---| | 7 | 8 | 9 | #+begin_src python=20 return [ ["Wide a", "b", "c"], None, [1, 2, 3], [4, 5, 6], None, [7, 8, 9] ] #+end_src #+RESULTS: | Wide a | b | c | |--------+---+---| | 1 | 2 | 3 | | 4 | 5 | 6 | |--------+---+---| | 7 | 8 | 9 | By the way, the org version loaded this time is 9.5.3 (9.5.3-g277897 @ = /Users/stanton/.emacs.d/straight/build/org/). The table exports OK, but isn=E2=80=99t much fun to look at in the org = file itself. Since I like to use emacs-jupyter, any suggestions would be appreciated. = I know this worked fine just a few weeks ago. Thanks! Richard Stanton