From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eMvdEOtgumVdlgAAe85BDQ:P1 (envelope-from ) for ; Wed, 31 Jan 2024 16:02:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eMvdEOtgumVdlgAAe85BDQ (envelope-from ) for ; Wed, 31 Jan 2024 16:02:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P5yqCrEM; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706713323; 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=z4/zfDMpECkohR3t+sNypqwBjP/qyF0UDif2wk7j4bo=; b=PhSFVuIzpAF2K8JbAXKNWlxWXXKzjOyfc9yKsgUQqxrLAeRBcM8/FEdziCK2DXol9EFgT5 EOjKFfH5qVxZSKQH4d684EB3s9djwfgh2DAkDkx4jYAM1dpagby7HR/6zUZEx/hU54BHcG F9cNZNsg4u2vwVMhFeeC4RWeMpAcHoQApv1b70hbJQPvf/Jd+DAipxW5IrMHS+ju2RAWAm uQT6zQ7GrQLnWB/4NL+aU8p5PY6q50d8KogU41yyhLwaiKGoiqc+tvR82ge4f3o6Cpf9hM DO6IKWZ/OTzHXZRYnUw9paT+OpHXfwDYwWMrK3NZEIrDgZGd8Ny/Mn3Nji5pGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P5yqCrEM; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706713323; a=rsa-sha256; cv=none; b=ji8zcYmYeLdnSEss67nQidCzIe8524AkKHFa5tVPRuNxfILjpiEWYitzmVn+G7ZKHRhlV1 BPJoLQdXYUi6EXc2fTj57tWPwpiqI+Xl6hxpQjdrVOIPGRVP9ISLRahjCXlXpQ/EWNjh8U Ufc5jfN3+KVbTfGaWKlHy/D0eSG7PTinD9YmQCWj9e27aiOYJiSV5bvIS85RdzsdNxNuyC P9mnzYt3X5tJdjkfL9yvDcou7vW9CrFr+lBuubt/sjyvkYTGlOrDfSMAU/pUS1uRPu6NvZ mRO4Wa4EWQy4P1dOqe/S+aDIwMpC417IHYls8cBAWzST7+NoC+SQK3kw1CQ6mA== 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 3045030929 for ; Wed, 31 Jan 2024 16:02:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVC5D-0004rx-7T; Wed, 31 Jan 2024 10:00:59 -0500 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 1rVC54-0004nq-09 for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 10:00:50 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVC52-0002YL-CZ for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 10:00:49 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40efcb37373so20867385e9.2 for ; Wed, 31 Jan 2024 07:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706713246; x=1707318046; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=z4/zfDMpECkohR3t+sNypqwBjP/qyF0UDif2wk7j4bo=; b=P5yqCrEMOHcHBwLqOMWBjhhSW++kGMuxufpe9XI0QrA5AtbSlrpeQKbmEUmi/oqjYk is5pdDDCWJQH/58WhfCckwhbMvC+Z5B/MQqwJAvOqRSdzNoYFiuCLf+YhQpdBO9kTp8h hAuzLqXA7eeR0MYh45UIr0hakaZI1cNUHjPGZWjiv1Ag31ie1YThJQ2Qr6rslzkqHgy4 VxWUoiBIbopeCUWgBo+45RepYY1v/3FqK1hnJxoHA3tG7Q7EW4Bckhwiq0yRYZzFaT8S psXWHC9l26KReB53Z46Rndwlou0Ft0Z5/ixhuovXZePVq+22jCAKvSsrlxn6oxbyRMjD Ne4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706713246; x=1707318046; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=z4/zfDMpECkohR3t+sNypqwBjP/qyF0UDif2wk7j4bo=; b=ow0TIBZ8MNggXwJKKzOh7DZtipHn1gcsbE4Q0YFC6ITP/35h09qpHKjLHPWF0r+tR1 Cmicprkp8Q0c+0FYWyfayF9c+jkKg5q4MkVyuV4RLs1T89B6bZXlPspasFEdhWE3Bc4/ y4OSqSK/Sl3lMrDWSZsY/+kDtCYBbFqmc85rA+QCBEEsVBBN70pE9ph00vKmWWEQJLsK tkpzOg7MTDN9xX5ySMPJlzX/BVfq9cszPgX4zlJ0PHyjwQOqTYjzaewjT32TOZm2yc98 yW/qYVXq/wqUvsZLQxTG24/aQXlle1weGIIajWmwxQR6x2+VjZlF5XONKmhuaaqgOD7t AmYQ== X-Gm-Message-State: AOJu0YxKjrnBvXK+kV8JD8yUp9ujfT3ZvLEOfCZMPYpPuhmSRTb5dZDr D2c0RvY8IniifiL09XGpoPhJmPYuAmb4SYAN+rzg+J9D130nypCnosLuRcUI X-Google-Smtp-Source: AGHT+IHkf7p9KSP6fB+Lb0lD4DVnVRE6BL5btJi1rhqeEgfZ4NVr30w0FMaSSHmvcbJwxOgOFvRhhw== X-Received: by 2002:a05:600c:45d1:b0:40f:b0ca:2b2d with SMTP id s17-20020a05600c45d100b0040fb0ca2b2dmr1405117wmo.1.1706713246218; Wed, 31 Jan 2024 07:00:46 -0800 (PST) Received: from ryzen-ms7c37 (pc174-c842.uibk.ac.at. [138.232.83.174]) by smtp.gmail.com with ESMTPSA id 10-20020a05600c22ca00b0040ef8aa4822sm1803901wmg.38.2024.01.31.07.00.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:00:45 -0800 (PST) From: Nasser Alkmim To: emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <8734udoejo.fsf@localhost> (Ihor Radchenko's message of "Wed, 31 Jan 2024 12:47:23 +0000") References: <87il3a55bg.fsf@gmail.com> <8734udvjai.fsf@localhost> <86plxhely9.fsf@gmail.com> <8734udoejo.fsf@localhost> Date: Wed, 31 Jan 2024 16:00:44 +0100 Message-ID: <86y1c5cztv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=nasser.alkmim@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.86 X-Spam-Score: -8.86 X-Migadu-Queue-Id: 3045030929 X-Migadu-Scanner: mx12.migadu.com X-TUID: 1UXUvqGmc/eG Ihor Radchenko writes: > Do you mean that you have no problem after you add :mkdirp yes? No. Just that I can reproduce the examples in the first message. Here is a clearer description of the unwanted behavior: 1. emacs -Q ~/Desktop/testasync.org Then evaluate (require 'ob-python) and paste this source block: #+begin_src python :dir otherdir :async yes :session pysession :return figname :results file value :mkdirp yes import matplotlib.pyplot as plt plt.figure(figsize=(1, 1)) plt.plot([1, 2]) figname = 'fig.svg' plt.savefig(figname) #+end_src Execute the source block, which results in #+RESULTS: [[file:fig.svg]] However, the figure is in ~/Desktop/otherdir/fig.svg and the link is wrong. If I run the same block without the ':async' and ':session', I get the right relative path to the figure: #+RESULTS: [[file:otherdir/fig.svg]] Best regards, -- Nasser Alkmim +43 677 6408 9171