From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eKjNJfyHa2HDHAAAgWs5BA (envelope-from ) for ; Sun, 17 Oct 2021 04:18:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uG13IfyHa2HsPgAAB5/wlQ (envelope-from ) for ; Sun, 17 Oct 2021 02:18:36 +0000 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 DFECEC110 for ; Sun, 17 Oct 2021 04:18:35 +0200 (CEST) Received: from localhost ([::1]:55390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbvkv-00049X-Ds for larch@yhetil.org; Sat, 16 Oct 2021 22:18:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbvjv-00049L-Gd for emacs-orgmode@gnu.org; Sat, 16 Oct 2021 22:17:31 -0400 Received: from smtp152.vfemail.net ([146.59.185.152]:49863) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1mbvjt-0000GO-M8 for emacs-orgmode@gnu.org; Sat, 16 Oct 2021 22:17:31 -0400 Received: (qmail 17378 invoked from network); 17 Oct 2021 02:17:26 +0000 Received: from localhost (HELO freequeue.vfemail.net) () by smtpout.vfemail.net with ESMTPS (DHE-RSA-AES256-SHA encrypted); 17 Oct 2021 02:17:26 +0000 Received: (qmail 16021 invoked from network); 17 Oct 2021 02:16:56 -0000 Received: from localhost (HELO nl101-2.vfemail.net) (bmE=@127.0.0.1) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 17 Oct 2021 02:16:56 -0000 Received: (qmail 15825 invoked from network); 17 Oct 2021 02:16:39 -0000 Received: by simscan 1.4.0 ppid: 15821, pid: 15823, t: 0.0109s scanners:none Received: from unknown (HELO localhost) (ZWRnYXJAb3Blbm1haWwuY2M=@192.168.1.192) by nl101.vfemail.net with ESMTPA; 17 Oct 2021 02:16:39 -0000 Date: Sun, 17 Oct 2021 02:17:07 +0000 Message-ID: <20211017021707.Horde.p9ib-mMooANjOrUuCbc5EPl@www.vfemail.net> From: edgar@openmail.cc To: emacs-orgmode@gnu.org Subject: how to org-babel-detangle with nested noweb? User-Agent: Horde Application Framework 5 X-VFEmail-Originating-IP: 2405:8100:8000:5ca1::ae:8692 X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Received-SPF: softfail client-ip=146.59.185.152; envelope-from=edgar@openmail.cc; helo=smtp152.vfemail.net X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL=1.999, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634437116; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=9/5AH9Pz9thCTRG+LANXDK+xL5Ipo57Rnn2xP6P5eEw=; b=WbUynnu5pnfd4s6nuQMsd0tzxh6rx9SPC1vsl7SZYrbPh71OpWlsSvpYeb2/RNarrmXFQI G+efeCS+iL0ck7W3QV65U6BJgAhaqZ41FrbGlQBdjmLfhfNwvOg50DeeJ9wsL01EoNy2gs kybAFyPLo16bMgiP3tAApYtszJ1t7H0mBKBjBP5b/XME4hitFCIMNEx/06Mc7rPMGdh9pJ kAQwDdidyiNsAtJe3CsL1V4GoMmzRmpGwxfgvBIYr91lZzxv6tYZiykmIN5x0gzZ2/XIRB t64HCYlBMyWhl3rQg3HPRUJ6MkO9OLiToBmS5qrDYS0lftVuYBreg/tGZniBCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634437116; a=rsa-sha256; cv=none; b=EO4BwIGtoQNxQcpXvrw/rTyP4Cjey2k5XgbCBRagaAZfkJF67ag5+xm3pEjXcNsQVmMgu6 pUOZnUBwWsx4YHfaqvxbMU7ccBF4ldCWizJePDnNdRHL/Uo738aJdLsik7mwA4O5gJplQ3 L/q+untA0aBEa2Y6zRuUv9hJX0LEOXUeYMqA1+iw+7tHsbLIDt3okHZSFv+m4dzPSSVm8L 57CKibG8e0Lx0RCCzj0YdHxwVELooSnr/0wukmxjeelXmL+6oHgNKUAeoLBaYwvprcZX9M hExrrcoIWxZ1UulbZC6eCtgW+5deMiUp69WVYYx62ohDBx9qEw/rUJ4Sa1P5GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: DFECEC110 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: fshJMPVqcLPH Hi, I am tangling Python files with =:comments link=. I don't know if a way already exits, but I would like to detangle (=org-babel-detangle=) /noweb/ blocks. For instance: #+name: binary_metrics.py #+begin_src python import numpy as np np.random.seed(42) true_vals = np.random.randint(0, 2, size=5) pred_vals = np.ones(5) #+end_src #+name: binary_metrics2.py #+begin_src python :tangle ../Code/Sandbox/tmp.py :dir ../Code/Sandbox/ :comments noweb :noweb yes :padline yes <> #+end_src Then, if I modify tmp.py and do an =org-babel-detangle=, the changes would go back to =binary_metrics.py=. As it is not working for me at the moment, I would like to know if 1. I am doing something wrong (it should be working), 2. there is a package which can handle this, or 3. this can be a feature request The reason for which I would like to have this is to take advantage of Org to have reproducible and maintainable documents when programming in Python. The reason behind this is that I am unaware of any package which allows =org-edit-special= to integrate with other blocks in the document in such a way that modules are imported, e.g: #+name: code1.py #+begin_src python import numpy as np #+end_src #+caption: Try to =org-edit-special= and get the documentation for =np= (with eldoc for instance). #+begin_src python :noweb yes <> np #+end_src #+begin_src emacs-lisp (format "%s\n%s" (emacs-version) (org-version)) #+end_src #+RESULTS: : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) : of 2021-03-26 : 9.4.6 Thank you! ------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!