[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ob-R output file with graphics parameter
From: |
Jack Kamm |
Subject: |
Re: [PATCH] ob-R output file with graphics parameter |
Date: |
Sat, 03 Jul 2021 06:01:50 -0700 |
Timothy <tecosaur@gmail.com> writes:
> Would it be strange if running the code block with just
>
> :output graphics
>
> Automatically added "link" if *only* graphics is set, and generated a
> file name if no :file is set?
It wouldn't be strange. ob-jupyter [1] auto-generates file names for
images, and it's convenient.
Currently, I believe that if you set global ":file-ext" and
":output-dir" arguments, and also set ":results graphics file" and name
the source block, then org-mode will generate the file name based on the
source block name, output-dir, and file-ext. I think this is similar to
what you want, except for the requirement to name the source
block. Perhaps we could generate the filename from a UUID or hash,
similar to ob-jupyter, if the source block isn't named.
I do think this is more involved, and somewhat orthogonal, to dropping
the ":results file" requirement when ":results graphics" is present. So
it should probably be done in a separate commit.
[1] https://github.com/nnicandro/emacs-jupyter
- Re: [PATCH] ob-R output file with graphics parameter, Jack Kamm, 2021/07/03
- Re: [PATCH] ob-R output file with graphics parameter, Timothy, 2021/07/03
- Re: [PATCH] ob-R output file with graphics parameter,
Jack Kamm <=
- Re: [PATCH] ob-R output file with graphics parameter, Jeremie Juste, 2021/07/03
- Re: [PATCH] ob-R output file with graphics parameter, Berry, Charles, 2021/07/03
- Re: [PATCH] ob-R output file with graphics parameter, Jack Kamm, 2021/07/03
- Re: [PATCH] ob-R output file with graphics parameter, Jack Kamm, 2021/07/06
- Re: [PATCH] ob-R output file with graphics parameter, Berry, Charles, 2021/07/06
- Re: [PATCH] ob-R output file with graphics parameter, Jack Kamm, 2021/07/06
- Re: [PATCH] ob-R output file with graphics parameter, Berry, Charles, 2021/07/06
- Re: [PATCH] ob-R output file with graphics parameter, Jeremie Juste, 2021/07/10
- Re: [PATCH] ob-R output file with graphics parameter, Jack Kamm, 2021/07/10
- Re: [PATCH] ob-R output file with graphics parameter, Berry, Charles, 2021/07/10