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 ms0.migadu.com with LMTPS id oNuhHmnozWGO7gAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 18:12:09 +0100 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 WHtgF2nozWE/awEAG6o9tA (envelope-from ) for ; Thu, 30 Dec 2021 18:12:09 +0100 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 0AF3E1CA41 for ; Thu, 30 Dec 2021 18:12:09 +0100 (CET) Received: from localhost ([::1]:38594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2yyG-0007wR-1G for larch@yhetil.org; Thu, 30 Dec 2021 12:12:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2yxk-0007sb-Gq for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 12:11:36 -0500 Received: from [2607:f8b0:4864:20::1035] (port=42847 helo=mail-pj1-x1035.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2yxj-0003xV-4I for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 12:11:36 -0500 Received: by mail-pj1-x1035.google.com with SMTP id lr15-20020a17090b4b8f00b001b19671cbebso23695621pjb.1 for ; Thu, 30 Dec 2021 09:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=I6AXU+uawarr71UkGH6H4a2ts2TR7oS6v4zXFf0f45c=; b=eLdMof7w9nSz30Teo7zF8XkNvbSK5nPd8tqYaht/PW33eGuCrbVdmsmfiIQDUk4JGv Qkikgpn/ol6OG8D255HwJ4PA647cgi3sXS0NGCffuzhft4r+SignCUQF5/ww8ahNI3yH FvsDa1zmbwalqW25KZzLyDdp+AvQaUkf9eSVyAKyicP/9NjF+/vSiEM/T1ntaCWX81gx asdfpdS9b8s254FExJVxhUz16G0rqI+p8FW+k3TqdgYLJEyQ3c8yqn3ZqFqVP1HNNjmm RX53H7ngj66vfx7dMjf9MmnoZyqez5FtXgogI6aTq2PhjzIkmW31VCaLN0x2FKMbd8Rv fSjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=I6AXU+uawarr71UkGH6H4a2ts2TR7oS6v4zXFf0f45c=; b=1Vr8cDpVTM7L6B6fi5/LAEqtuklAIZ5yayl9sCj+rhP6UYZkG5kf5CzCuHCIkUULOR tr6mGZJ1H38RM3uOxQd4loqDIuYxj34zbntiu78ud95ENam/R/NL0hWUP2ELNAJB2dEO L7yl3Oqnn76qgMUP4uMXh0xO9FDtHxHfMT1Av/qwxks3tvmQuSKtRMzuvPzXJwKG+8Qi j5BfFlpBMVedJ2Qd6i6G6ssv7GvNdWddDNnZwdDDXLrNeoY6UMBUHozog7TpVlNXeHUM 3tRHrF/zst0NmDv8BuKF/XXBmDADIH0D5zmHlGANbVWbQkQRWWIqVCYWzKufN2A50qO6 wOqA== X-Gm-Message-State: AOAM531IktDD96kopqkiTkQmvJF8sQ6WUw+RGXUq0PgOwVwmcJ5Qomcl 4jTzul5nA7EAP6btI+gPRUc= X-Google-Smtp-Source: ABdhPJwzeMYkycGuDGAlM0tN8SKl/y5F5ESGPwQITJOGfWipDZB5S4rpRgdv/BZUzuBclwfpGdiMiQ== X-Received: by 2002:a17:90b:1812:: with SMTP id lw18mr36929395pjb.160.1640884293011; Thu, 30 Dec 2021 09:11:33 -0800 (PST) Received: from localhost (157-131-79-88.fiber.dynamic.sonic.net. [157.131.79.88]) by smtp.gmail.com with ESMTPSA id x11sm24933162pjq.52.2021.12.30.09.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 09:11:32 -0800 (PST) From: Jack Kamm To: numbchild@gmail.com, Org Mode Subject: Re: [BUG] ob-python :results value pp does not working In-Reply-To: References: Date: Thu, 30 Dec 2021 09:11:26 -0800 Message-ID: <87czleyq4h.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1035 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=jackkamm@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640884329; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I6AXU+uawarr71UkGH6H4a2ts2TR7oS6v4zXFf0f45c=; b=nNFtVqU9bO6aVi4fq9dkd2y3SUnNI+gKYItREp5VWYdqI2XO5biWUaIyK/UtNKCAvNqrDr IdBnUxdG04T7qWOUX9Rwi9+WOdRIoilWqO99Mfqxpe5tq3+kNjPa/GnWFf+YJck2AcOS5G gdAds2dUh/q9PQyqZjgvyArggfpE26CFjuPetikqB9g21sr0KvMS9EYoLuOGM9gsukZ++l hf2C8wubMsJJbQbkrDylX3MlI+ORYFwqOIsNhyUCSdjzT0OWwxq3wGuwOOerEwGgLEZpS2 AlLdShPxck3t/Wi2dwQLo9cEmIL0/w8jNgRbn/zr9e6/5OOzoayVPEDfLi1U0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640884329; a=rsa-sha256; cv=none; b=fwSlB7cj6qeeT9U0lFRBd7by72jj5MMXeTBg32Nog/moNzu+zmWf7JpMVr8/CO80v17LLU xgF1Ndr/WPnTeJgFh+xaEJ4MsY6HlJRjQXpWfCzHrSts8q3FFhQpXTLyRjOsio9WYjzZuK Ya7GTFvGsHNKPubouwqAdVF4yUycR92qsvA5nz/+b4LrydQZuPHbDlEtFAX+rZxik5kOGa 4G+X/MjxNspeJyKAHhp1OwlNJpDb+f+xQ0jhkw6BBi3RqBpvTAz1SQdxkK9K5EkiGXFid2 jbO9nS/W6KmbuRa79144+gp4Lj5/C+tG4D7Def3ql4oR9da4qBKKSMZEeOOWpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eLdMof7w; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eLdMof7w; dmarc=pass (policy=none) header.from=gmail.com; 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: 0AF3E1CA41 X-Spam-Score: -4.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: WWaWGcFW1t/m For non-session Python blocks, you need to use "return" on the value, as if you are in a function. The following works for me: #+begin_src python :results value pp dic = {'key1': 1, 'b': 2} return dic #+end_src #+RESULTS: : {'b': 2, 'key1': 1}