From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 aPvvFcwHfWK3QgEAbAwnHQ (envelope-from ) for ; Thu, 12 May 2022 15:12:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2AbyFcwHfWLyPwAAauVa8A (envelope-from ) for ; Thu, 12 May 2022 15:12:44 +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 141CD27DA4 for ; Thu, 12 May 2022 15:12:42 +0200 (CEST) Received: from localhost ([::1]:43242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np8cT-0001AX-Rv for larch@yhetil.org; Thu, 12 May 2022 09:12:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np8bG-00017K-Qn for emacs-orgmode@gnu.org; Thu, 12 May 2022 09:11:27 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:44990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np8bE-0004co-MK for emacs-orgmode@gnu.org; Thu, 12 May 2022 09:11:26 -0400 Received: by mail-qk1-x72b.google.com with SMTP id n8so4514885qke.11 for ; Thu, 12 May 2022 06:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=3r/cYqpj7ilZbZn0v5POO6zCHtu3Vatd6koodZcHoH0=; b=kR7QsNwjd1wNKfc1vmDjsM2czGBPiy5ltxTKA5WW9Y4HNqc94MpK+9hygX+9EfuENH 1NfixwFCmpzQ8ZsOfjDZcwSPU8KFj9H6tEnSYGxmoIO2tPgRtrl/0LsIaSsGlCGsXnM5 BtW1XoGElUqSIcrreVum89d0Ol8KFuuzZRTzSaBPqjhtm2WNGjyVPgMbepyOXCvHXddf GW+rMHX4HkcLRyaEJgmsk/psQPD4QKYmUc7CuvAZnLUmDVgcxuhodX8Ogn6E8i4eOdDC RY10+FgF2DDMhlt0sqcZG1K+Z8AbpRy8oT0Zs7zEjFvvdTeUp8Sz6hwqBqdb14X3qQXo uMXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=3r/cYqpj7ilZbZn0v5POO6zCHtu3Vatd6koodZcHoH0=; b=xsnu6uUnHX3kAcS/YR+Yhirl7xV93GXnMvB2LkrKRyMiJ1opSKAVMUrTP66/R+ZHuP KEicJpZBholUId0vQbQKYbYlFIfHK67+oy1QTlZ1j6XiddaFFTUjkFGtWsAmVsvpMs0c rIq7mZR5CwT271N2iefHV223T7BwfnLYEza8OKxaSzv1K6VGvZm/Q0BfmwahIKS5HLMr 16h0ySV9C76jFdE8XYg6H4xyq0hucXtJr3+ZAzcgN9q0svJAO8oLcOshzrIrk4qyNtDM IaoJn9j4kOcemhDKzLsK8FzV+Md8vgiz+UX8mtEKzHD4BTFsbQkcri8UPA1ZOe+nKOqc fCYw== X-Gm-Message-State: AOAM530k3/jATNk4/syW7vFXVmxjCBXMhsDM/97xROMBm5CfxT0nGFbu /LoBgJ1EM/MAuj95T8ezMw9O/w21WR4= X-Google-Smtp-Source: ABdhPJze717Uzh+MHCZt7dRnDYOScPlqHBr3LSB30/GxT+KYfqCBJEgJh6ev80EHC4aFI2rTyITE7A== X-Received: by 2002:a05:620a:b4a:b0:69f:66fc:a3db with SMTP id x10-20020a05620a0b4a00b0069f66fca3dbmr22382597qkg.679.1652361080697; Thu, 12 May 2022 06:11:20 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:1d79:16de:e1af:c7a3]) by smtp.gmail.com with ESMTPSA id b10-20020ae9eb0a000000b0069fc13ce206sm2965360qkg.55.2022.05.12.06.11.19 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 May 2022 06:11:20 -0700 (PDT) References: <21F026ED-1504-4F33-B596-769CD294AC4A@berkeley.edu> <877d6rhxcf.fsf@localhost> User-agent: mu4e 1.6.10; emacs 28.0.90 From: John Kitchin To: Ihor Radchenko Cc: Richard Stanton , emacs-orgmode@gnu.org Subject: Re: How to stop results being hidden when using ":results drawer"? Date: Thu, 12 May 2022 09:07:55 -0400 In-reply-to: <877d6rhxcf.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=johnrkitchin@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-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=1652361164; 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=3r/cYqpj7ilZbZn0v5POO6zCHtu3Vatd6koodZcHoH0=; b=RbuZ+Q0rIIuTAYbqzQ5zSzjeQH/L7S5iVwtgZ3IvpLjVqNyAmVo9NUJ9SVl3aUc6fvw8Y6 gWZvtQxH/palOt+V3sk3NJHaxUH7K4BkyFCEGt5PDCZkREUnivjyGw+jokSMVAjkhlymHm J+mFkmZy/EJoZ/lup5TFFfS8WXKVl3D/vStXCVqlIlRO35q915iwzaynE3OxDN0DZdEMmf kO/hzsiBqQCt/EoNQIaWF81beSSafg2QmGqV5BOO4C1WwdKXgnLePoAmwRJBw0Of1obxXZ 0CR0rU7zMhfMp4aVQeR7rrAoCqfdDAAxxcFrcn0wpNle6DsD2bfJwFvoSjRW6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652361164; a=rsa-sha256; cv=none; b=Aj1H2AlLjHv1BJf/U03X42c3tfuxmdwR7axdKf0cs32pVjqd+oWGtzO/xFtSzJIAo8L9Y3 pANm9KKDhi7oEowyMpB682AwFUP+BXQvVu2YN/R5frIjNg6p8Ud7oGasmhR/HEo2uL0BUW SD65+msE7v/C+jwqDrkc3GYOt9ti5JNSjGjKHqjxw24e6miJBAhdQlDG40ZPn+dOt27+3L M94Ey9dSdQc/56jVFOez2Y80HfVvjYlHXQJK5oHupwsCjBZdksWSwAiD7NokxSaYLwka/T j3OIXYSMBfkWlBBqDx3WKctikP9WxyjYGd2UbRGkP9UoJxUZ8hYhl/5FKO+K5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kR7QsNwj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=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: 8.39 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kR7QsNwj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=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: 141CD27DA4 X-Spam-Score: 8.39 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: Nz40MdzqRD+3 This does not change anything for me. The function that causes folding for me is `org-entry-show'. Presumably because of this line: (org-cycle-hide-drawers 'children) My solution was an override advice that makes this function not run when point is in a src-block (https://github.com/jkitchin/scimax/blob/master/scimax-jupyter.el#L281). Ihor Radchenko writes: > Richard Stanton writes: > >> I=E2=80=99m creating documents where I run Python code blocks that creat= e LaTeX mathematical output that I want to be able to export to either LaTe= X/PDF or HTML.=20 >> >> Using :wrap in the header works fine, except that LaTeX complains about = the unknown environment =E2=80=9Cresults=E2=80=9D (it still compiles the fi= le to PDF fine). >> >> Using :wrap export latex works fine for LaTeX export, but I can=E2=80=99= t get HTML that way. >> >> The recommended method seems to be to use :results drawer. This works fi= ne >> from an export perspective to both LaTeX/PDF and to HTML. However, it ha= s one >> significant drawback when I=E2=80=99m actually creating the document: th= e results >> drawer starts out hidden and to see what=E2=80=99s there I have to click= on it. This >> makes debugging the code in the first place a lot less convenient. >> >> Is there a way to use :results drawer and have the results NOT hidden by= default? > > I think that you are experiencing the same issue with > https://list.orgmode.org/80k0ar1lml.fsf@felesatra.moe/T/#u > > Does it help when you run > M-: (setq org-fold-core-first-unfold-functionsp nil) > before running the code block? > > Best, > Ihor --=20 Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his