From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Babel: Store script in external file Date: Sun, 15 Dec 2019 19:21:36 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000eaa6a0599c809e9" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47551) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igf54-0006MV-IX for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 20:21:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igf53-0001tq-FQ for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 20:21:50 -0500 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:42808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igf53-0001qa-At for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 20:21:49 -0500 Received: by mail-io1-xd34.google.com with SMTP id f82so5183940ioa.9 for ; Sun, 15 Dec 2019 17:21:49 -0800 (PST) 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 --0000000000000eaa6a0599c809e9 Content-Type: text/plain; charset="UTF-8" Hello all, I think I'm missing something basic: I'd like to have something like this: #+begin_src python #+filename: foo.py Instead of storing my Python code in the current org file, I would like Babel to read foo.py and execute it, as if it was inside the .org file. The foo.py mentioned above is fairly large, and I would like the code to be stored in a different file than my .org file, for brevity. Any ideas? I feel like I'm missing something obvious. Thanks, --Nate --0000000000000eaa6a0599c809e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I think I'm missing = something basic: =C2=A0I'd like to have something like this:
=
#+begin_src python
#+filename: foo.py
Instead of storing my Python code in the current org file, I w= ould like
Babel to read foo.py and execute it, as if it was insid= e the .org file.

The foo.py mentioned above is fai= rly large, and I would like the code
to be stored in a different = file than my .org file, for brevity.

Any ideas?=C2= =A0 I feel like I'm missing something obvious.

Thanks,
--Nate
--0000000000000eaa6a0599c809e9--