From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kHkaCayX3GR82QAASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 11:32:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kOD0CKyX3GSj+AAA9RJhRA (envelope-from ) for ; Wed, 16 Aug 2023 11:32:28 +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 BF612533EB for ; Wed, 16 Aug 2023 11:32:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rir0tZz9; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692178347; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P6mJ0lUzjJsdCgE3nMRVgdZlmFASBsksXxEF6hXjGHc=; b=bgnvkbSr3JXbRQmEI4N1YFot6U0VUKs3BhiU2m4LFKjbB7O+AB+WDFiv/JhBu1+EffIee7 6h8zAUya2Gbu9gAxPC9IJ49gOPnqMP8tFtveR/np9sf7vpgDAZVqbftTrPlwyaN0PElZbs qzrC2ih0w2/0RJI8h8kYXoclcVcmwqY3IVyz06KeFVUfOxPnVD2VrvMpm3kIGZpGA3/Pim JQ5AN6f2BlHHiKOCmPgRfoWqmxLUcyuzg7AuhFtT5MnTD634PUZSnqB2/tKVOTfoVkvK6i PuC8Tzq1lPM3tUaoBXQdC1mZJFSqA807+Y3Tb9HEguPCdMbaNJMvPybuWgbK7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rir0tZz9; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692178347; a=rsa-sha256; cv=none; b=e+h1KzoNLk1dlVmsLNjOPS+qFWzAN3qRV2+ahcvjokZ8+DkamAsDm8+TZrNoBTaqiX7Uc/ XCdEIrOC05mPcXaW6GD8Zsz8k9P6YvUGVTdj+lAxf/lOcaslfs0QkZsbajIqkfy/vaP3bF iZSkyQjPrOMv7DYLo/UIXnrzL5fUi7iaVschSXluUVCratrRYAM4O7CKxEf8mcItqcQR3M dbXnfNhQ/I2iE0pAB1gvXGRUKQN3p0pxfDF9YHft4wLBWEgsO/FG69NWmKU80vAObpxb8X wfdt0I7zFDZZOtQkLZCcesjxj4fUY9ud8Ge03uB6zHuazCW7G+VUQsRhN0tALA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWCsw-0002AL-Qh; Wed, 16 Aug 2023 05:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWCse-00020L-4j for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 05:31:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWCsZ-0000zh-Vf for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 05:31:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4AE9C240029 for ; Wed, 16 Aug 2023 11:31:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692178308; bh=0fLDolj2yN/W/Patb/rJbc3FqOVJt6ECqYdN0c9KL1U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=rir0tZz98hOqwAHqEqJjryOivQPVth6RJf5RVKICjLO/Chvj5MXtGwrOR4dH8Spc9 aJKnBbKtGi+j9gvfcZE4tLFxVoYOQGMHta4BV9N+WXXXTGLj4HS13WN+0Kd2+fdBnc n4Ow35vn1Cqk5y7l1XMyqnzcaYC+IhJmU6JBvZPlkTrRVCHuUJyo4nzgmTPSGM3FHz Gmiz+KgAzUo+mDIUXScVDQHOOwcsqDPhlHbA+zw2rel6lBKBbDKOHotSqv1dmxMSxl /daLLczTh7xIY6c2vetutYxQdzQdhWPM7j7Qndbhm0/5KAsYTsHmksadsahzOlxixJ nWs+gbsWpOEaA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQjZW4RZBz9rxN; Wed, 16 Aug 2023 11:31:47 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: emacs-orgmode@gnu.org, Liu Hui Subject: Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots In-Reply-To: <87a5ur6f7w.fsf@gmail.com> References: <87a5ur6f7w.fsf@gmail.com> Date: Wed, 16 Aug 2023 09:32:15 +0000 Message-ID: <871qg3pc2o.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.53 X-Migadu-Queue-Id: BF612533EB X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.53 X-TUID: wpJfIgeJ89wR Jack Kamm writes: > Starting with dicts: these are no longer mangled. The current behavior > (before patch) is like so: > > #+begin_src python > return {"a": 1, "b": 2} > #+end_src > > #+RESULTS: > | a | : | 1 | b | : | 2 | > > But after the patch they appear like so: > > #+begin_src python > return {"a": 1, "b": 2} > #+end_src > > #+RESULTS: > : {'a': 1, 'b': 2} What about #+begin_src python :results table return {"a": 1, "b": 2} #+end_src #+RESULTS: | a | 1 | | b | 2 | or #+begin_src python :results list return {"a": 1, "b": 2} #+end_src #+RESULTS: - a :: 1 - b :: 2 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at