From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: :noweb & library of babel Date: Mon, 03 Jul 2017 18:58:13 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS6YO-0007oR-ML for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 14:58:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dS6YM-0007Ya-3L for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 14:58:36 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:7845 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dS6YL-0007X5-Qk for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 14:58:34 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, I would like to know if someone can help me, please. 1. I currently have a file called code-blocks.org. Let us say that it has something like this: code-blocks.org ========== * Routines ** numpy_import.py #+NAME: py-Routines-numpy_import.py #+CAPTION: py-Routines-numpy_import.py #+BEGIN_SRC python :results none :noweb yes :tangle Routines/numpy_import.py # Numerical package import numpy as np # Plots from matplotlib import pyplot as pl #+END_SRC * Test ** simple.py #+NAME: py-Test-simple_damage.py #+CAPTION: py-Test-simple_damage.py #+HEADER: :var fname="steps.csv" #+HEADER: :dir "../Data/Raw" #+HEADER: :exports none :results none #+BEGIN_SRC python :noweb yes :tangle ./Damage/simple_damage.py :session <> #+END_SRC ========== 2. I load it into the library of babel with ~org-babel-lob-ingest~ (~C-c C-v i~). 3. Then, I have another file called tjp.org, which may look something like this (please, read the contents): tjp.org ========== * My tasks ** Go here - [X] This is a working example The following block works well: I can issue C-c C-c, C-c C-v v and the contents are parsed correctly. #+HEADER: :exports none :results none :eval no-export #+BEGIN_SRC python :noweb yes :dir "../Data/Raw" <> #+END_SRC - [-] This does not work If I do C-c in the following block #+HEADER: :exports none :results none :eval no-export #+BEGIN_SRC python :noweb yes :dir "../Data/Raw" <> #+END_SRC I get an error: #+BEGIN_EXAMPLE File "", line 2 <> ^ SyntaxError: invalid syntax #+END_EXAMPLE If I do C-c C-v v, I see this: #+BEGIN_EXAMPLE <> #+END_EXAMPLE - [ ] If I put all the blocks in the same file, everything works. ========== Does anybody know what I am doing wrong? Thanks :) . #+BEGIN_SRC elisp (emacs-version) #+END_SRC #+RESULTS: : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) : of 2015-01-11 on maritornes, modified by Debian #+BEGIN_SRC elisp (org-version) #+END_SRC #+RESULTS: : 9.0.9 ------------------------------------------------- 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!