From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 +Ji+AGiC4GQMiAAASxT56A (envelope-from ) for ; Sat, 19 Aug 2023 10:50:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8EFCO2eC4GS8qgAAG6o9tA (envelope-from ) for ; Sat, 19 Aug 2023 10:50:47 +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 628D95CF2C for ; Sat, 19 Aug 2023 10:50:47 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NAEJAAuK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692435047; a=rsa-sha256; cv=none; b=rRtppydWzZSe4ndPhMgeTA/MktVYxe0G8VR5kuKfG5mAZvWJ3sopSBLpqad7iGdaLPtIMB CNHyLilzHmY/zUqwNHF94mE24gK6hlz49bRj5lgjtm9GCvlxBb1pdUI/6H/mxoPCoTQZVl C3SefgQ8SgDiuyqp1wLUi0I0P/52iktBRZKD0p0a1bQXGqFo3dkAm/MLiFN8UJVLn8lUVW IJgJT0QFyxX2QKKoGLSgGeYI7EnfTBZ1qfAUy4YILxz6EluexVREyHvWXnjF/hCKDLJGP6 SaRARqyGAu4q99t++8dHgB7GmQylvYkbH5JPxyMRj3WJL/Ao8DYCtNRHoTHjEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NAEJAAuK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692435047; 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=tRwCcWplo3/iJrBNyg8+t1P9gCoE13WNDOTu2PTS01A=; b=R2EOcrkFJaRp5ADQSdzhwdP/pZqbFoqB9mne2Q35cE4qjEegY6FKuxXRLA0nFnz+mu6Jsz H/c39BwvhET/CHBmjGE6+UdncH4j2W+mDB3JohMZf8wDa27P6Eq8pBUlWEQQwJYfl38vyV DmjqHV/WTIK20dr7dBdfv4pXney2EKHOo1Id4mawRpzrqGovY00PhTKzjPVMZbSET96S/P +o87v5g51hVWwVT/C0GoR4sSTVLxWMdIGxiR3WNMaumZgBBQfP0R+3N46bwPIR+pI+xhGp vpiyJ4dHkyGKUftiXoYuJiHfBYLW7yRIylWO/HAQh2nJylOXIFKJZE54GA47Kw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXHeo-00021x-9G; Sat, 19 Aug 2023 04:50:06 -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 1qXHei-00021U-C6 for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 04:50:00 -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 1qXHed-0001xT-Gy for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 04:49:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 90A6D240027 for ; Sat, 19 Aug 2023 10:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692434993; bh=ubFaiIxCE5QMlRAHLyphtbvT/vrCiZFDcx7z1mnx6Mg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=NAEJAAuKg2jwRRUex6ORiI2YmgNyBvo/Wtl5baoLz8JLlu8L0vuyc7RRvoqCyBMpd wFefwK0j5KjJ6hvARcqLpMtMYalePsuyZBw2yhV9qDSE0Uy77Yf+JJfZfdJsc0vVjZ KzC550cAo8o8eWR++vySCjnnCiJ41eKYkz1Y1R+wt8aXKAuSFD1VZO6DuyVLL8r4O4 hXeBjSEZpW4P5uwT6W9eZQhMc84rA6NpgMX14YBZ7unLP0ALgnzNPDhOGsR2RUJVlv pvZIk4qr3mbgBc8RLyybs6rx++ttbd8x7/JbyfgQUdLjBuS6gK9PfqhAtDvZw4aj7G LmUwLQ0Eet/rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RSXVm61v9z6tm4; Sat, 19 Aug 2023 10:49:52 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: gerard.vermeulen@posteo.net, emacs-orgmode@gnu.org, Liu Hui , emacs-orgmode-bounces+gerard.vermeulen=posteo.net@gnu.org Subject: Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots In-Reply-To: <878ra8apxw.fsf@gmail.com> References: <87a5ur6f7w.fsf@gmail.com> <871qg3pc2o.fsf@localhost> <87350i9uwv.fsf@gmail.com> <9948eae293cae8766808778d6390eb64@posteo.net> <878ra8apxw.fsf@gmail.com> Date: Sat, 19 Aug 2023 08:50:21 +0000 Message-ID: <878ra7o1pu.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=unavailable 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-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -7.71 X-Migadu-Queue-Id: 628D95CF2C X-Migadu-Spam-Score: -7.71 X-TUID: bzgp0b66rhez Jack Kamm writes: > So I am thinking now about how we could make this more extensible in > future. One idea is to create a Python package for interfacing with Org > Babel, and release it on PyPi. If we detect the package is installed, > then we can delegate to it for results formatting. And the community > could contribute results handling for all sorts of Python objects to > that package. > > That is just one idea for improving extensibility -- I'm not sure it's > the best, and am open to other suggestions as well. Similar to the existing LaTeX formatters, one may write a Python package that will pretty-print Org markup as text. Not just for Org babel - it might be useful in general. And we do not need to support such formatters explicitly in ob-python. Users can simply arrange to call the formatters in their code blocks by the usual means. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at