[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Babel: Store script in external file
From: |
Michael Welle |
Subject: |
Re: Babel: Store script in external file |
Date: |
Mon, 16 Dec 2019 11:09:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3.50 (gnu/linux) |
Hello,
Nathan Neff <address@hidden> writes:
> 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.
either put some Python code into your Python src block that executes
your external script. Or use a shell|elisp|whatever src block that
executes your script.
Regards
hmw